Browse Source

Readahead is not available on all platforms

master
Arun Prakash Jana 4 years ago
parent
commit
97e16364bb
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/nnn.c

+ 2
- 0
src/nnn.c 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)


Loading…
Cancel
Save