]> git.saurik.com Git - redis.git/commitdiff
compilation fix for mac os x
authorantirez <antirez@gmail.com>
Sun, 2 May 2010 13:08:06 +0000 (15:08 +0200)
committerantirez <antirez@gmail.com>
Sun, 2 May 2010 13:08:06 +0000 (15:08 +0200)
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