mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Readahead is not available on all platforms
This commit is contained in:
parent
6d3f3ba6a2
commit
97e16364bb
1 changed files with 2 additions and 0 deletions
|
@ -3513,7 +3513,9 @@ static int dentfill(char *path, struct entry **dents)
|
||||||
open_max = max_openfds();
|
open_max = max_openfds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if _POSIX_C_SOURCE >= 200112L
|
||||||
posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL);
|
posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL);
|
||||||
|
#endif
|
||||||
|
|
||||||
dp = readdir(dirp);
|
dp = readdir(dirp);
|
||||||
if (!dp)
|
if (!dp)
|
||||||
|
|
Loading…
Add table
Reference in a new issue