1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

#2696 posix_fadv_dontneed undeclared

This commit is contained in:
Mitchell Livingston 2009-12-25 15:48:41 +00:00
parent 8903e1b4e3
commit 8dbfb708f5

View file

@ -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