diff options
Diffstat (limited to 'utils/config.h')
-rw-r--r-- | utils/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/config.h b/utils/config.h index d44359576..21a2e4a5a 100644 --- a/utils/config.h +++ b/utils/config.h @@ -24,7 +24,7 @@ /* Try to detect which features the target OS supports */ -#if (defined(_GNU_SOURCE) && !defined(__APPLE__) || defined(__HAIKU__)) +#if (defined(_GNU_SOURCE) && !defined(__APPLE__) || defined(__HAIKU__) || (defined(_POSIX_C_SOURCE) && ((_POSIX_C_SOURCE - 0) >= 200809L))) #define HAVE_STRNDUP #else #undef HAVE_STRNDUP |