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__)