summaryrefslogtreecommitdiff
path: root/src/fmacros.h
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:03 +0200
commit0cae060a26745e1cb06700f7878ffe647db8ddd4 (patch)
treebb1ff9b46734e2adc1aee25af37f34bd8d2f9a51 /src/fmacros.h
parentd3f7fbfc092d9c681bd4fd74e38418f692d5eb38 (diff)
downloadredis-0cae060a26745e1cb06700f7878ffe647db8ddd4.tar.gz
Compilation fixed on OpenBSD making sure that _XOPEN_SOURCE is set to 700 in fmacros.h
Diffstat (limited to 'src/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