pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/bind8 Fix build on newer NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bdb933d455ff
branches:  trunk
changeset: 543666:bdb933d455ff
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Jun 21 20:01:59 2008 +0000

description:
Fix build on newer NetBSD.

diffstat:

 net/bind8/distinfo         |   3 ++-
 net/bind8/patches/patch-ap |  27 +++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r cf7f53f95a02 -r bdb933d455ff net/bind8/distinfo
--- a/net/bind8/distinfo        Sat Jun 21 20:00:22 2008 +0000
+++ b/net/bind8/distinfo        Sat Jun 21 20:01:59 2008 +0000
@@ -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-am) = 7acd974e10388dba0dcb44c28f2f03e18b7a1c28
 SHA1 (patch-an) = 41b63a50756d9f73152fc8a48dbf93657064e90f
 SHA1 (patch-ao) = 85ee16824e849ad227e04dbf71808446769438af
+SHA1 (patch-ap) = 90de55b3d44570af0af9573012dae9f16a75aafd
diff -r cf7f53f95a02 -r bdb933d455ff net/bind8/patches/patch-ap
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bind8/patches/patch-ap        Sat Jun 21 20:01:59 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index