summaryrefslogtreecommitdiff
path: root/deps/hiredis
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-05-25 16:33:22 +0200
committerantirez <antirez@gmail.com>2018-05-25 16:33:23 +0200
commitfb6ebaa598f95629f91f41594e626012adaf0269 (patch)
tree3f65fd645c5a446043e6379b7ab6812ab9dbbf3a /deps/hiredis
parentfb9c1c3dbddf7c37f77f310a5bc57c6b5173b422 (diff)
downloadredis-fb6ebaa598f95629f91f41594e626012adaf0269.tar.gz
Backport hiredis issue 525 fix to compile on FreeBSD.
Close #4947.
Diffstat (limited to 'deps/hiredis')
-rw-r--r--deps/hiredis/fmacros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/hiredis/fmacros.h b/deps/hiredis/fmacros.h
index 14fed6060..9a56643df 100644
--- a/deps/hiredis/fmacros.h
+++ b/deps/hiredis/fmacros.h
@@ -13,7 +13,7 @@
#if defined(__sun__)
#define _POSIX_C_SOURCE 200112L
#else
-#if !(defined(__APPLE__) && defined(__MACH__))
+#if !(defined(__APPLE__) && defined(__MACH__)) && !(defined(__FreeBSD__))
#define _XOPEN_SOURCE 600
#endif
#endif