diff options
| author | 2019-11-18 22:04:09 +0530 | |
|---|---|---|
| committer | 2019-11-18 22:04:09 +0530 | |
| commit | 97e16364bb52a8132254b08fc95ab5a094ec9537 (patch) | |
| tree | e3633112379d5e78fde955259deffc0686fc37c9 /src | |
| parent | 6d3f3ba6a2825b38580466702af11b4716cfc200 (diff) | |
| download | nnn-97e16364bb52a8132254b08fc95ab5a094ec9537.tar.gz | |
Readahead is not available on all platforms
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |