]> git.saurik.com Git - redis.git/commitdiff
Define _XOPEN_SOURCE appropriately on NetBSD.
authorPatrick TJ McPhee <pmcphee@givex.com>
Wed, 12 Dec 2012 15:49:12 +0000 (10:49 -0500)
committerantirez <antirez@gmail.com>
Wed, 12 Dec 2012 17:42:36 +0000 (18:42 +0100)
deps/hiredis/fmacros.h
src/fmacros.h

index 21cd9cfee3d34b38565e05967f7931d346e6c7a0..96324eb4980f20f479bde45b45ba52582aa225ed 100644 (file)
@@ -7,7 +7,7 @@
 
 #if defined(__sun__)
 #define _POSIX_C_SOURCE 200112L
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
 #define _XOPEN_SOURCE 600
 #else
 #define _XOPEN_SOURCE
index 6f3c4b4e8b2756daced4533d641ee10abcbdc7c7..a6cf3578c13d2e5452ffab2bd734a12fd693fbf2 100644 (file)
@@ -36,7 +36,7 @@
 #define _GNU_SOURCE
 #endif
 
-#if defined(__linux__) || defined(__OpenBSD__)
+#if defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
 #define _XOPEN_SOURCE 700
 #else
 #define _XOPEN_SOURCE