aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/work.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/work.c b/src/work.c
index 510fa07..7656d4d 100644
--- a/src/work.c
+++ b/src/work.c
@@ -82,7 +82,9 @@ process_file(const char *locl_filename, unsigned char **locl_buf)
goto err;
}
+#if !defined(__APPLE__) && !defined(__OpenBSD__)
(void)posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL | POSIX_FADV_WILLNEED);
+#endif
struct stat st;
if (fstat(fd, &st) == -1) {