aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 2d9be92..53d8575 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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)