]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorBrian Wellington <source@isc.org>
Mon, 18 Sep 2000 23:35:19 +0000 (23:35 +0000)
committerBrian Wellington <source@isc.org>
Mon, 18 Sep 2000 23:35:19 +0000 (23:35 +0000)
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

index 1c1d762abcaaecf59b181285aa62793e9e826387..c41f69454ca5799de6c2ebc9ea51981ab562bc8b 100644 (file)
@@ -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 <config.h>
 
 #include <stdlib.h>
 #include <unistd.h>
 
+#if (!(defined(HAVE_ADDRINFO) && defined(HAVE_GETADDRINFO)))
+extern int h_errno;
+#endif
+
+#include <isc/app.h>
 #include <isc/base64.h>
 #include <isc/buffer.h>
 #include <isc/condition.h>
@@ -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;