summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fmacros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fmacros.h b/fmacros.h
index 405be20aa..38f46482a 100644
--- a/fmacros.h
+++ b/fmacros.h
@@ -2,7 +2,13 @@
#define _REDIS_FMACRO_H
#define _BSD_SOURCE
+
+#ifdef __linux__
#define _XOPEN_SOURCE 700
+#else
+#define _XOPEN_SOURCE
+#endif
+
#define _LARGEFILE_SOURCE
#define _FILE_OFFSET_BITS 64