summaryrefslogtreecommitdiff
path: root/net/bind9/patches/patch-an
blob: 94b554a5b2ddac5aecc026505bc6ebfdbdce2f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 */