summaryrefslogtreecommitdiff
path: root/net/bind9/patches/patch-an
diff options
context:
space:
mode:
Diffstat (limited to 'net/bind9/patches/patch-an')
-rw-r--r--net/bind9/patches/patch-an22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/bind9/patches/patch-an b/net/bind9/patches/patch-an
new file mode 100644
index 00000000000..94b554a5b2d
--- /dev/null
+++ b/net/bind9/patches/patch-an
@@ -0,0 +1,22 @@
+$NetBSD: patch-an,v 1.1.2.2 2006/09/07 11:20:44 ghen Exp $
+
+--- lib/bind/include/netdb.h.orig 2004-11-30 01:15:42.000000000 +0000
++++ lib/bind/include/netdb.h
+@@ -179,9 +179,17 @@ struct addrinfo {
+ int _ai_pad;
+ #endif
+ socklen_t ai_addrlen;
++#elif defined(__NetBSD__)
++#if defined(__sparc__) && defined(_LP64)
++ int _ai_pad;
++#endif
++ socklen_t ai_addrlen;
+ #else
+ size_t ai_addrlen; /* length of ai_addr */
+ #endif
++#if defined(__NetBSD__) && (defined(__alpha__) || (defined(__i386__) && defined(_LP64)))
++ int _ai_pad;
++#endif
+ #ifdef __linux
+ struct sockaddr *ai_addr; /* binary address */
+ char *ai_canonname; /* canonical name for hostname */