summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-11-24 08:08:23 +0000
committerrubidium <rubidium@openttd.org>2010-11-24 08:08:23 +0000
commit3330dee7e013d110d36c54a1e833b272a8762cab (patch)
tree310ad7253755f5f55bfea6ad16efc516fecbc523 /src
parent4231154bb45342287e73f6543ebec82bd04bff49 (diff)
downloadopenttd-3330dee7e013d110d36c54a1e833b272a8762cab.tar.xz
(svn r21310) -Fix [FS#4259]: apparantly even earlier FreeBSDs had strndup
Diffstat (limited to 'src')
-rw-r--r--src/string_func.h2
1 files changed, 1 insertions, 1 deletions
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