summaryrefslogtreecommitdiff
path: root/net/bind9/patches/patch-an
blob: 79c1cb8faadb6f1cd1991889eda2690202f234a3 (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.2 2007/04/15 18:56:50 cjs Exp $

--- lib/bind/include/netdb.h.orig
+++ 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 */