declare h_errno only on those platforms that actually need it;
it conflicts with the declaration in netdb.h on AIX
* 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>
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;