summaryrefslogtreecommitdiff
path: root/net/bind95/patches/patch-ao
blob: 48b268613c218647fd4bc37ba9c9124f800e2405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ao,v 1.1.1.1 2008/06/21 23:15:28 adrianp Exp $

--- lib/bind/irs/getaddrinfo.c.orig	2006-11-13 05:04:49.000000000 +0000
+++ lib/bind/irs/getaddrinfo.c
@@ -332,7 +332,8 @@ getaddrinfo(hostname, servname, hints, r
 	pai->ai_family = PF_UNSPEC;
 	pai->ai_socktype = ANY;
 	pai->ai_protocol = ANY;
-#if defined(sun) && defined(_SOCKLEN_T) && defined(__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 +366,7 @@ getaddrinfo(hostname, servname, hints, r
 		}
 		memcpy(pai, hints, sizeof(*pai));
 
-#if defined(sun) && defined(_SOCKLEN_T) && defined(__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.