$NetBSD: patch-ag,v 1.2 2012/07/20 09:58:36 adam Exp $

--- hosts_access.c.orig	2003-12-25 00:49:56.000000000 +0000
+++ hosts_access.c
@@ -34,9 +34,6 @@ static char sccsid[] = "@(#) hosts_acces
 #include <setjmp.h>
 #include <string.h>
 
-extern char *fgets();
-extern int errno;
-
 #ifndef	INADDR_NONE
 #define	INADDR_NONE	(-1)		/* XXX should be 0xffffffff */
 #endif
@@ -405,7 +402,7 @@ static void ipv6_mask(in6p, maskbits)
 struct in6_addr *in6p;
 int maskbits;
 {
-    uchar_t *p = (uchar_t*) in6p;
+    unsigned char *p = (unsigned char *) in6p;
 
     if (maskbits < 0 || maskbits >= IPV6_ABITS)
 	return;
@@ -416,7 +413,7 @@ int maskbits;
     if (maskbits != 0)
 	*p++ &= 0xff << (8 - maskbits);
 
-    while (p < (((uchar_t*) in6p)) + sizeof(*in6p))
+    while (p < (((unsigned char *) in6p)) + sizeof(*in6p))
 	*p++ = 0;
 }
 #endif
