From 3330dee7e013d110d36c54a1e833b272a8762cab Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 24 Nov 2010 08:08:23 +0000 Subject: (svn r21310) -Fix [FS#4259]: apparantly even earlier FreeBSDs had strndup --- src/string_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string_func.h b/src/string_func.h index c2e48d63a..fd79d6bea 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 -- cgit v1.2.3-70-g09d2