From 8a690d7c32c6a0fd6465a135f0730715879f0785 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Mon, 18 Sep 2000 23:23:12 +0000 Subject: [PATCH] declare h_errno only on those platforms that actually need it; it conflicts with the declaration in netdb.h on AIX --- bin/nsupdate/nsupdate.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index d6bacb8a84..bcbc4018df 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: nsupdate.c,v 1.49 2000/09/18 19:16:45 mws Exp $ */ +/* $Id: nsupdate.c,v 1.50 2000/09/18 23:23:12 gson Exp $ */ #include @@ -26,6 +26,10 @@ #include #include +#if (!(defined(HAVE_ADDRINFO) && defined(HAVE_GETADDRINFO))) +extern int h_errno; +#endif + #include #include #include @@ -106,8 +110,6 @@ static isc_sockaddr_t *userserver = NULL; static char *keystr = NULL, *keyfile = NULL; static isc_entropy_t *entp = NULL; -extern int h_errno; - typedef struct nsu_requestinfo { dns_message_t *msg; isc_sockaddr_t *addr;