]> git.saurik.com Git - redis.git/blobdiff - fmacros.h
allow AOF to be fixed by truncating to the portion of the file that is valid
[redis.git] / fmacros.h
index 405be20aa98e870cadda1a4c3e00e83f37df28f2..38f46482aa86a8ec5e15f999f009e21f3fc3e461 100644 (file)
--- 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