aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os_unix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 242c2a3c3..bc1b44cb2 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -48,8 +48,7 @@
/* Use posix_fallocate() if it is available
*/
-#if !defined(HAVE_POSIX_FALLOCATE) \
- && (_XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L)
+#if defined(__linux__) || defined(__APPLE__)
# define HAVE_POSIX_FALLOCATE 1
#endif