aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index bc1b44cb2..e4382cbff 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -48,7 +48,7 @@
/* Use posix_fallocate() if it is available
*/
-#if defined(__linux__) || defined(__APPLE__)
+#if !defined(HAVE_POSIX_FALLOCATE) && defined(__linux__)
# define HAVE_POSIX_FALLOCATE 1
#endif