Backport hiredis issue 525 fix to compile on FreeBSD.

Close #4947.
This commit is contained in:
antirez 2018-05-25 16:33:22 +02:00
parent fb9c1c3dbd
commit fb6ebaa598

View File

@ -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