diff options
Diffstat (limited to 'net/bind9/patches/patch-ao')
-rw-r--r-- | net/bind9/patches/patch-ao | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/bind9/patches/patch-ao b/net/bind9/patches/patch-ao new file mode 100644 index 00000000000..58fc04b6328 --- /dev/null +++ b/net/bind9/patches/patch-ao @@ -0,0 +1,22 @@ +$NetBSD: patch-ao,v 1.1 2006/08/28 16:00:45 seb Exp $ + +--- lib/bind/irs/getaddrinfo.c.orig 2005-07-28 07:43:19.000000000 +0000 ++++ lib/bind/irs/getaddrinfo.c +@@ -332,7 +332,7 @@ getaddrinfo(hostname, servname, hints, r + pai->ai_family = PF_UNSPEC; + pai->ai_socktype = ANY; + pai->ai_protocol = ANY; +-#ifdef __sparcv9 ++#if (defined(sun) && defined(_SOCKLEN_T) && defined(__sparc9)) || (defined(__NetBSD__) && (((defined(__sparc__) || defined(__i386__)) && defined(_LP64)) || defined(__alpha__))) + /* + * clear _ai_pad to preserve binary + * compatibility with previously compiled 64-bit +@@ -365,7 +365,7 @@ getaddrinfo(hostname, servname, hints, r + } + memcpy(pai, hints, sizeof(*pai)); + +-#ifdef __sparcv9 ++#if (defined(sun) && defined(_SOCKLEN_T) && defined(__sparc9)) || (defined(__NetBSD__) && (((defined(__sparc__) || defined(__i386__)) && defined(_LP64)) || defined(__alpha__))) + /* + * We need to clear _ai_pad to preserve binary + * compatibility. See prior comment. |