diff --git a/src/string_func.h b/src/string_func.h index c2e48d63a7..fd79d6bea7 100644 --- a/src/string_func.h +++ b/src/string_func.h @@ -282,7 +282,7 @@ static inline bool IsWhitespace(WChar c) #endif /* strndup is a GNU extension */ -#if defined(_GNU_SOURCE) || (defined(__NetBSD_Version__) && 400000000 <= __NetBSD_Version__) || (defined(__FreeBSD_version) && 720000 <= __FreeBSD_version) +#if defined(_GNU_SOURCE) || (defined(__NetBSD_Version__) && 400000000 <= __NetBSD_Version__) || (defined(__FreeBSD_version) && 701101 <= __FreeBSD_version) # undef DEFINE_STRNDUP #else # define DEFINE_STRNDUP