summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authornros <nros@pkgsrc.org>2019-09-18 20:32:47 +0000
committernros <nros@pkgsrc.org>2019-09-18 20:32:47 +0000
commite3fec949c2f02b4244d65767964472a570144736 (patch)
tree75794ce15b64ca3d9236dc63b3b117228ffa89d0 /www
parent942122f482c4d53451279b026592024fc2bea5be (diff)
downloadpkgsrc-e3fec949c2f02b4244d65767964472a570144736.tar.gz
Remove compilation messages about redundant declaration of strchrnul
NetBSD has strchrnul so tell netsurf this.
Diffstat (limited to 'www')
-rw-r--r--www/netsurf/distinfo4
-rw-r--r--www/netsurf/patches/patch-netsurf_utils_config.h17
2 files changed, 15 insertions, 6 deletions
diff --git a/www/netsurf/distinfo b/www/netsurf/distinfo
index 20800094a48..fd2ece15b93 100644
--- a/www/netsurf/distinfo
+++ b/www/netsurf/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.13 2019/09/18 20:21:39 nros Exp $
+$NetBSD: distinfo,v 1.14 2019/09/18 20:32:47 nros Exp $
SHA1 (netsurf-all-3.9.tar.gz) = 392aa7cf94b303228a00e6887c74e5763a81f3a4
RMD160 (netsurf-all-3.9.tar.gz) = 3f7aff04cfd253f2b18590830b0aa2fca0123b3c
SHA512 (netsurf-all-3.9.tar.gz) = 3223b0a3bc9721ea1a5a81bbabdda11e1d0f63850074a5dea3ea8999e53c92f07228f58befbf10359c028965131426888a8b9595d6c3cd7a5cde33ca256cf987
Size (netsurf-all-3.9.tar.gz) = 8416458 bytes
SHA1 (patch-netsurf_frontends_gtk_download.c) = 25bbb146ed57ddfc943155b366cb73850e4ff0ac
-SHA1 (patch-netsurf_utils_config.h) = de48304e3484a883509ea3ad92658788f7869041
+SHA1 (patch-netsurf_utils_config.h) = 947eb55fbef10b50b651f2df18f95d30e82078e2
SHA1 (patch-nsgenbind_src_Makefile) = 9024fe193c532fefec83b86a8cf85f1bcffb614e
diff --git a/www/netsurf/patches/patch-netsurf_utils_config.h b/www/netsurf/patches/patch-netsurf_utils_config.h
index 1d4941c1a36..0d5812da942 100644
--- a/www/netsurf/patches/patch-netsurf_utils_config.h
+++ b/www/netsurf/patches/patch-netsurf_utils_config.h
@@ -1,10 +1,10 @@
-$NetBSD: patch-netsurf_utils_config.h,v 1.1 2015/09/03 20:56:10 leot Exp $
+$NetBSD: patch-netsurf_utils_config.h,v 1.2 2019/09/18 20:32:47 nros Exp $
-NetBSD has strcasestr(3).
+NetBSD has strcasestr(3) and strchrnul(3).
---- netsurf/utils/config.h.orig 2015-03-11 07:34:53.000000000 +0000
+--- netsurf/utils/config.h.orig 2019-07-17 15:37:00.000000000 +0000
+++ netsurf/utils/config.h
-@@ -31,7 +31,7 @@
+@@ -30,7 +30,7 @@
char *strndup(const char *s, size_t n);
#endif
@@ -13,3 +13,12 @@ NetBSD has strcasestr(3).
#define HAVE_STRCASESTR
#else
#undef HAVE_STRCASESTR
+@@ -51,7 +51,7 @@ char *strcasestr(const char *haystack, c
+ /* For some reason, UnixLib defines this unconditionally. Assume we're using
+ * UnixLib if building for RISC OS.
+ */
+-#if ((defined(_GNU_SOURCE) && !defined(__APPLE__)) || defined(__riscos__))
++#if ((defined(_GNU_SOURCE) && !defined(__APPLE__)) || defined(__riscos__) || defined(__NetBSD__))
+ #define HAVE_STRCHRNUL
+ #else
+ #undef HAVE_STRCHRNUL