1 $NetBSD: patch-ao,v 1.2 2007/01/28 01:31:52 adrianp Exp $
3 --- lib/bind/irs/getaddrinfo.c.orig 2006-11-13 05:04:49.000000000 +0000
4 +++ lib/bind/irs/getaddrinfo.c
5 @@ -332,7 +332,8 @@ getaddrinfo(hostname, servname, hints, r
6 pai->ai_family = PF_UNSPEC;
7 pai->ai_socktype = ANY;
8 pai->ai_protocol = ANY;
9 -#if defined(sun) && defined(_SOCKLEN_T) && defined(__sparcv9)
10 +#if (defined(sun) && defined(_SOCKLEN_T) && defined(__sparc9)) || (defined(__NetBSD__) && (((defined(__sparc__) || defined(__i386__)) && defined(_LP64)) || defined(__alpha__)))
13 * clear _ai_pad to preserve binary
14 * compatibility with previously compiled 64-bit
15 @@ -365,7 +366,7 @@ getaddrinfo(hostname, servname, hints, r
17 memcpy(pai, hints, sizeof(*pai));
19 -#if defined(sun) && defined(_SOCKLEN_T) && defined(__sparcv9)
20 +#if (defined(sun) && defined(_SOCKLEN_T) && defined(__sparc9)) || (defined(__NetBSD__) && (((defined(__sparc__) || defined(__i386__)) && defined(_LP64)) || defined(__alpha__)))
22 * We need to clear _ai_pad to preserve binary
23 * compatibility. See prior comment.