Readahead is not available on all platforms

This commit is contained in:
Arun Prakash Jana 2019-11-18 22:04:09 +05:30
parent 6d3f3ba6a2
commit 97e16364bb
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -3513,7 +3513,9 @@ static int dentfill(char *path, struct entry **dents)
open_max = max_openfds();
}
#if _POSIX_C_SOURCE >= 200112L
posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL);
#endif
dp = readdir(dirp);
if (!dp)