forked from premiere/premiere-libtorrent
merged build fixes from RC_0_16
This commit is contained in:
parent
3788ed23ca
commit
1be837c6e4
|
@ -1216,7 +1216,7 @@ namespace libtorrent
|
|||
return -1;
|
||||
}
|
||||
#else
|
||||
if (m_file_handle == -1)
|
||||
if (m_fd == -1)
|
||||
{
|
||||
ec = error_code(EBADF, get_system_category());
|
||||
return -1;
|
||||
|
@ -1440,7 +1440,7 @@ namespace libtorrent
|
|||
return -1;
|
||||
}
|
||||
#else
|
||||
if (m_file_handle == -1)
|
||||
if (m_fd == -1)
|
||||
{
|
||||
ec = error_code(EBADF, get_system_category());
|
||||
return -1;
|
||||
|
|
|
@ -60,7 +60,7 @@ void test_checking(bool read_only_files, bool corrupt_files = false)
|
|||
#ifdef TORRENT_WINDOWS
|
||||
SetFileAttributesA(path.c_str(), FILE_ATTRIBUTE_NORMAL);
|
||||
#else
|
||||
chmod(path.c_str(), S_IRUSR | SUWUSR);
|
||||
chmod(path.c_str(), S_IRUSR | S_IWUSR);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ void test_checking(bool read_only_files, bool corrupt_files = false)
|
|||
#ifdef TORRENT_WINDOWS
|
||||
SetFileAttributesA(path.c_str(), FILE_ATTRIBUTE_NORMAL);
|
||||
#else
|
||||
chmod(path.c_str(), S_IRUSR | SUWUSR);
|
||||
chmod(path.c_str(), S_IRUSR | S_IWUSR);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue