mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
#2696 posix_fadv_dontneed undeclared
This commit is contained in:
parent
8903e1b4e3
commit
8dbfb708f5
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ verifyTorrent( tr_torrent * tor, tr_bool * stopFlag )
|
|||
pieceBytesRead += numRead;
|
||||
if( numRead == bytesThisPass )
|
||||
SHA1_Update( &sha, buffer, numRead );
|
||||
#ifdef HAVE_POSIX_FADVISE
|
||||
#if defined HAVE_POSIX_FADVISE && defined POSIX_FADV_DONTNEED
|
||||
posix_fadvise( fd, filePos, bytesThisPass, POSIX_FADV_DONTNEED );
|
||||
#endif
|
||||
#ifdef SYS_DARWIN
|
||||
|
|
Loading…
Reference in a new issue