summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2011-09-29 10:20:03 +0200
committerantirez <antirez@gmail.com>2011-09-29 10:20:36 +0200
commit15da88c8dc026dea2051dd63198a6d9affa42b9a (patch)
tree37ff619c01a6657ba30e0b708a17dcb188d7ff3f
parentee2f20dfdeb11ee1e2f432fab623e956b4720b4d (diff)
downloadredis-15da88c8dc026dea2051dd63198a6d9affa42b9a.tar.gz
Compilation fixed on OpenBSD making sure that _XOPEN_SOURCE is set to 700 in fmacros.h
-rw-r--r--src/fmacros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmacros.h b/src/fmacros.h
index 38f46482a..866a9afa8 100644
--- a/src/fmacros.h
+++ b/src/fmacros.h
@@ -3,7 +3,7 @@
#define _BSD_SOURCE
-#ifdef __linux__
+#if defined(__linux__) || defined(__OpenBSD__)
#define _XOPEN_SOURCE 700
#else
#define _XOPEN_SOURCE