diff options
author | ahoka <ahoka@pkgsrc.org> | 2009-09-22 12:02:36 +0000 |
---|---|---|
committer | ahoka <ahoka@pkgsrc.org> | 2009-09-22 12:02:36 +0000 |
commit | a4b0030bd1c8eabc28ef130c71508a58c2b50b2b (patch) | |
tree | 2a019c3533cbf233a885c51ad8658fca6b851a4e /games/openttd/patches | |
parent | eef16cbc426b1a8eee31724f39f5bf74eb84449c (diff) | |
download | pkgsrc-a4b0030bd1c8eabc28ef130c71508a58c2b50b2b.tar.gz |
Upgrade to 0.7.2.
The changelog is too verbose to include here.
Diffstat (limited to 'games/openttd/patches')
-rw-r--r-- | games/openttd/patches/patch-string_func.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/openttd/patches/patch-string_func.h b/games/openttd/patches/patch-string_func.h new file mode 100644 index 00000000000..8460ed81eef --- /dev/null +++ b/games/openttd/patches/patch-string_func.h @@ -0,0 +1,20 @@ +$NetBSD: patch-string_func.h,v 1.1 2009/09/22 12:02:36 ahoka Exp $ + +--- src/string_func.h.orig 2009-05-10 23:33:55.000000000 +0200 ++++ src/string_func.h +@@ -239,13 +239,13 @@ static inline bool IsWhitespace(WChar c) + ; + } + +-#ifndef _GNU_SOURCE ++#if !defined(_GNU_SOURCE) && (defined(__NetBSD_Version__) && __NetBSD_Version__ < 500000000) + /* strndup is a GNU extension */ + char *strndup(const char *s, size_t len); + #endif /* !_GNU_SOURCE */ + + /* 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))) ++#if defined(_GNU_SOURCE) || (defined(__BSD_VISIBLE) && __BSD_VISIBLE) || (defined(__APPLE__) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))) || defined(_NETBSD_SOURCE) + # undef DEFINE_STRCASESTR + #else + # define DEFINE_STRCASESTR |