diff --git a/headers/compatibility/bsd/features.h b/headers/compatibility/bsd/features.h index 50d35b4334..fc76b1da02 100644 --- a/headers/compatibility/bsd/features.h +++ b/headers/compatibility/bsd/features.h @@ -6,7 +6,7 @@ #define _FEATURES_H -#if defined(_BSD_SOURCE) \ +#if defined(_BSD_SOURCE) || defined(_GNU_SOURCE) \ || (!defined(__STRICT_ANSI__) && !defined(_POSIX_C_SOURCE)) #undef _DEFAULT_SOURCE #define _DEFAULT_SOURCE