summaryrefslogtreecommitdiff
path: root/net/host/patches/patch-aa
blob: 7e51bed1843d9ef6932ab9ec30f8283264fdc8ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$NetBSD: patch-aa,v 1.5 2013/02/18 04:25:07 dholland Exp $

 - support NetBSD and Irix
 - check for _LP64

--- port.h.orig	2003-06-05 01:00:07.000000000 +0000
+++ port.h
@@ -76,7 +76,7 @@
  * Every other conceivable version of the BIND-based resolvers should have one
  * or both of __BIND and/or __NAMESER defined to define their API version.
  */
-#if !defined(__BIND) && !defined(__NAMESER)
+#if !defined(__BIND) && !defined(__NAMESER) && !defined(IRIX5)
 # define BIND_4_8	1	/* XXX this should be ``#include "ERROR!!!"''*/
 #endif
 
@@ -154,7 +154,8 @@ typedef int		bool_t;		/* boolean type */
  */
 #if defined(__NAMESER) && (!defined(__GLIBC__) || ((__RES - 0) > 19991006)) && \
 	((__NAMESER - 0) >= 19991006 || \
-	 (defined(__FreeBSD__) && (__NAMESER - 0) >= 19961001))
+	 (defined(__FreeBSD__) && (__NAMESER - 0) >= 19961001)) && \
+	 !defined(__NetBSD__)
 # define HAVE_GETIPNODEBYNAME	1
 # define HAVE_GETIPNODEBYADDR	1
 # define HAVE_FREEHOSTENT	1
@@ -236,7 +237,7 @@ typedef u_char		nbuf_t;
 #endif
 
 #ifndef _IPADDR_T
-# if defined(__alpha) || defined(__arch64__)
+# if defined(__alpha) || defined(__arch64__) || defined(_LP64)
 typedef unsigned int	ipaddr_t;
 # else
 typedef unsigned long	ipaddr_t;