diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-21 20:01:59 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-21 20:01:59 +0000 |
commit | 161145404341b1db6ef0878013e376777efd77b0 (patch) | |
tree | 3cf12e198530a124743e661a47d4e8f292dafa44 | |
parent | 1a79319de637595870ccef0ce5d22f887ee2aacf (diff) | |
download | pkgsrc-161145404341b1db6ef0878013e376777efd77b0.tar.gz |
Fix build on newer NetBSD.
-rw-r--r-- | net/bind8/distinfo | 3 | ||||
-rw-r--r-- | net/bind8/patches/patch-ap | 27 |
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 |