summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick TJ McPhee <pmcphee@givex.com>2014-04-08 21:11:14 -0400
committerMatt Stancliff <matt@genges.com>2014-04-09 17:02:42 -0400
commit4441fa3513e8b7bcd95d6b03dc56e0d538f264ca (patch)
tree3af54f22ccb1b7a21b5c858a8f2bd894c3b98f24
parent4ede1bada156038b83aa2c883fc8bc836a120ac4 (diff)
Define _XOPEN_SOURCE for NetBSD
This is backported from https://github.com/antirez/redis/commit/289942b6259670fe3dcfaffdd0135c27f14c61c0
-rw-r--r--fmacros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fmacros.h b/fmacros.h
index 799c12c..9e5fec0 100644
--- a/fmacros.h
+++ b/fmacros.h
@@ -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