aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/hiredis/fmacros.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hiredis/fmacros.h')
-rw-r--r--contrib/hiredis/fmacros.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/contrib/hiredis/fmacros.h b/contrib/hiredis/fmacros.h
index 19d7b2193..754a53c21 100644
--- a/contrib/hiredis/fmacros.h
+++ b/contrib/hiredis/fmacros.h
@@ -1,21 +1,14 @@
#ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
-#if defined(__linux__)
-#define _BSD_SOURCE
-#define _DEFAULT_SOURCE
-#endif
-
-#if defined(__sun__)
-#define _POSIX_C_SOURCE 200112L
-#elif defined(__linux__) || defined(__OpenBSD__) || defined(__NetBSD__)
+#ifndef _AIX
#define _XOPEN_SOURCE 600
-#else
-#define _XOPEN_SOURCE
+#define _POSIX_C_SOURCE 200112L
#endif
-#if __APPLE__ && __MACH__
-#define _OSX
+#if defined(__APPLE__) && defined(__MACH__)
+/* Enable TCP_KEEPALIVE */
+#define _DARWIN_C_SOURCE
#endif
#endif