$OpenBSD: patch-src_string_func_h,v 1.2 2013/12/08 14:58:32 bentley Exp $
Don't use openttd's internal copies of strndup()/strcasestr().
--- src/string_func.h.orig	Fri Nov 29 05:16:09 2013
+++ src/string_func.h	Tue Dec  3 02:39:29 2013
@@ -249,7 +249,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) && 701101 <= __FreeBSD_version) || (defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L)
+#if defined(_GNU_SOURCE) || (defined(__NetBSD_Version__) && 400000000 <= __NetBSD_Version__) || (defined(__FreeBSD_version) && 701101 <= __FreeBSD_version) || (defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L) || defined(__OpenBSD__)
 #	undef DEFINE_STRNDUP
 #else
 #	define DEFINE_STRNDUP
@@ -257,7 +257,7 @@ char *strndup(const char *s, size_t len);
 #endif /* strndup is available */
 
 /* strcasestr is available for _GNU_SOURCE, BSD and some Apple */
-#if defined(_GNU_SOURCE) || (defined(__BSD_VISIBLE) && __BSD_VISIBLE) || (defined(__APPLE__) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))) || defined(_NETBSD_SOURCE)
+#if defined(_GNU_SOURCE) || (defined(__BSD_VISIBLE) && __BSD_VISIBLE) || (defined(__APPLE__) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))) || defined(_NETBSD_SOURCE) || defined(__OpenBSD__)
 #	undef DEFINE_STRCASESTR
 #else
 #	define DEFINE_STRCASESTR
