summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg>2008-06-21 20:01:59 +0000
committerjoerg <joerg>2008-06-21 20:01:59 +0000
commit87cf53cc2e664bff3666ad3641d40b4914ce46ec (patch)
tree3cf12e198530a124743e661a47d4e8f292dafa44 /net
parentb731e0773a43490ef6db2143fc0e967f41eeb830 (diff)
downloadpkgsrc-87cf53cc2e664bff3666ad3641d40b4914ce46ec.tar.gz
Fix build on newer NetBSD.
Diffstat (limited to 'net')
-rw-r--r--net/bind8/distinfo3
-rw-r--r--net/bind8/patches/patch-ap27
2 files changed, 29 insertions, 1 deletions
diff --git a/net/bind8/distinfo b/net/bind8/distinfo
index ff422eb61f9..9b6742e9e24 100644
--- a/net/bind8/distinfo
+++ b/net/bind8/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2008/05/11 00:00:57 tonnerre Exp $
+$NetBSD: distinfo,v 1.23 2008/06/21 20:01:59 joerg Exp $
SHA1 (bind/8.4.7/8.4.7-p1.patch) = 21ace372a55ff10166c3aaefb9ca25889b8e9c99
RMD160 (bind/8.4.7/8.4.7-p1.patch) = 09787da6ebf107f680963ead6b9998f734244951
@@ -23,3 +23,4 @@ SHA1 (patch-al) = f03b3b5480d9294673cdb86cf0f45f48ce9ea895
SHA1 (patch-am) = 7acd974e10388dba0dcb44c28f2f03e18b7a1c28
SHA1 (patch-an) = 41b63a50756d9f73152fc8a48dbf93657064e90f
SHA1 (patch-ao) = 85ee16824e849ad227e04dbf71808446769438af
+SHA1 (patch-ap) = 90de55b3d44570af0af9573012dae9f16a75aafd
diff --git a/net/bind8/patches/patch-ap b/net/bind8/patches/patch-ap
new file mode 100644
index 00000000000..0d9f347730e
--- /dev/null
+++ b/net/bind8/patches/patch-ap
@@ -0,0 +1,27 @@
+$NetBSD: patch-ap,v 1.1 2008/06/21 20:01:59 joerg Exp $
+
+--- src/port/netbsd/include/port_after.h.orig 2003-04-24 03:55:37.000000000 +0000
++++ src/port/netbsd/include/port_after.h
+@@ -6,7 +6,6 @@
+ #define USE_WAITPID
+ #define HAVE_GETRUSAGE
+ #define HAVE_FCHMOD
+-#define NEED_PSELECT
+ #define SETGRENT_VOID
+ #define SETPWENT_VOID
+ #define HAVE_SA_LEN
+@@ -45,6 +44,14 @@
+ #include <ifaddrs.h>
+ #endif
+
++#if !defined(__NetBSD_Version__) || __NetBSD_Version__ < 300000000
++#define NEED_PSELECT
++#endif
++
++#if !defined(__NetBSD_Version__) || __NetBSD_Version__ >= 400000000
++#define HAVE_STRNDUP
++#endif
++
+ /*
+ * We need to know the IPv6 address family number even on IPv4-only systems.
+ * Note that this is NOT a protocol constant, and that if the system has its