summaryrefslogtreecommitdiff
path: root/net/host/patches/patch-aa
blob: 3e0f8b15acaefc31228d2bdac506ce13cb0a371d (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-aa,v 1.4 2006/10/03 14:25:55 schwarz Exp $

--- port.h.orig	2003-06-05 03:00:07.000000000 +0200
+++ port.h	2006-10-03 16:23:18.000000000 +0200
@@ -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 @@
  */
 #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