| @@ -1,16 +1,17 @@ | | | @@ -1,16 +1,17 @@ |
1 | $NetBSD: patch-ab,v 1.5 2011/04/05 11:04:40 wiz Exp $ | | 1 | $NetBSD: patch-ab,v 1.6 2011/08/05 00:34:41 wiz Exp $ |
2 | | | 2 | |
3 | Third chunk: fix build with png-1.5. | | 3 | Third chunk: fix build with png-1.5. |
| | | 4 | https://sourceforge.net/tracker/?func=detail&aid=3386433&group_id=66938&atid=516295 |
4 | | | 5 | |
5 | --- src/tuxpaint.c.orig 2007-07-01 01:38:03.000000000 +0000 | | 6 | --- src/tuxpaint.c.orig 2007-07-01 01:38:03.000000000 +0000 |
6 | +++ src/tuxpaint.c | | 7 | +++ src/tuxpaint.c |
7 | @@ -170,7 +170,7 @@ static scaleparams scaletable[] = { | | 8 | @@ -170,7 +170,7 @@ static scaleparams scaletable[] = { |
8 | likely available; if not using GNU, you can set HAVE_STRCASESTR to | | 9 | likely available; if not using GNU, you can set HAVE_STRCASESTR to |
9 | avoid trying to redefine it -bjk 2006.06.02 */ | | 10 | avoid trying to redefine it -bjk 2006.06.02 */ |
10 | | | 11 | |
11 | -#if !defined(__USE_GNU) && !defined(HAVE_STRCASESTR) | | 12 | -#if !defined(__USE_GNU) && !defined(HAVE_STRCASESTR) |
12 | +#if !defined(__USE_GNU) && !defined(HAVE_STRCASESTR) && !defined(__NetBSD__) | | 13 | +#if !defined(__USE_GNU) && !defined(HAVE_STRCASESTR) && !defined(__NetBSD__) |
13 | #warning "Attempting to define strcasestr(); if errors, build with -DHAVE_STRCASESTR" | | 14 | #warning "Attempting to define strcasestr(); if errors, build with -DHAVE_STRCASESTR" |
14 | | | 15 | |
15 | char *strcasestr(const char *haystack, const char *needle) | | 16 | char *strcasestr(const char *haystack, const char *needle) |
16 | @@ -363,8 +363,8 @@ extern WrapperData macosx; | | 17 | @@ -363,8 +363,8 @@ extern WrapperData macosx; |