]> git.saurik.com Git - redis.git/commitdiff
Compilation fixed on OpenBSD making sure that _XOPEN_SOURCE is set to 700 in fmacros.h
authorantirez <antirez@gmail.com>
Thu, 29 Sep 2011 08:20:03 +0000 (10:20 +0200)
committerantirez <antirez@gmail.com>
Thu, 29 Sep 2011 08:20:03 +0000 (10:20 +0200)
src/fmacros.h

index 38f46482aa86a8ec5e15f999f009e21f3fc3e461..866a9afa816163dfc54415619367a5ea8759a59e 100644 (file)
@@ -3,7 +3,7 @@
 
 #define _BSD_SOURCE
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__OpenBSD__)
 #define _XOPEN_SOURCE 700
 #else
 #define _XOPEN_SOURCE