36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
$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;
|