pkgsrc/net/host/patches/patch-aa
2006-10-03 14:25:55 +00:00

23 lines
908 B
Text

$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