From: Brian Wellington Date: Mon, 18 Sep 2000 23:35:19 +0000 (+0000) Subject: pullup: X-Git-Tag: v9.0.0^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bba4a4ebe558f474e88d3e7f05cc3a357168c62b;p=thirdparty%2Fbind9.git pullup: declare h_errno only on those platforms that actually need it; it conflicts with the declaration in netdb.h on AIX --- diff --git a/bin/nsupdate/nsupdate.c b/bin/nsupdate/nsupdate.c index 1c1d762abca..c41f69454ca 100644 --- a/bin/nsupdate/nsupdate.c +++ b/bin/nsupdate/nsupdate.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: nsupdate.c,v 1.8.2.9 2000/09/18 22:29:36 gson Exp $ */ +/* $Id: nsupdate.c,v 1.8.2.10 2000/09/18 23:35:19 bwelling Exp $ */ #include @@ -26,6 +26,11 @@ #include #include +#if (!(defined(HAVE_ADDRINFO) && defined(HAVE_GETADDRINFO))) +extern int h_errno; +#endif + +#include #include #include #include @@ -109,8 +114,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;