summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fmacros.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fmacros.h b/fmacros.h
index 9e5fec0..19d7b21 100644
--- a/fmacros.h
+++ b/fmacros.h
@@ -1,8 +1,9 @@
#ifndef __HIREDIS_FMACRO_H
#define __HIREDIS_FMACRO_H
-#if !defined(_BSD_SOURCE)
+#if defined(__linux__)
#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
#endif
#if defined(__sun__)