Remove INET6 define. Use ENABLE_IPV6 instead.
diff --git a/Modules/getnameinfo.c b/Modules/getnameinfo.c
index 4827bc6..d3c0ac5 100644
--- a/Modules/getnameinfo.c
+++ b/Modules/getnameinfo.c
@@ -58,7 +58,7 @@
 	int a_socklen;
 	int a_off;
 } gni_afdl [] = {
-#ifdef INET6
+#ifdef ENABLE_IPV6
 	{PF_INET6, sizeof(struct in6_addr), sizeof(struct sockaddr_in6),
 		offsetof(struct sockaddr_in6, sin6_addr)},
 #endif
@@ -102,7 +102,7 @@
 	int family, len, i;
 	char *addr, *p;
 	u_long v4a;
-#ifdef INET6
+#ifdef ENABLE_IPV6
 	u_char pfx;
 #endif
 	int h_error;
@@ -159,7 +159,7 @@
 		if (v4a == 0 || v4a == IN_LOOPBACKNET)
 			flags |= NI_NUMERICHOST;			
 		break;
-#ifdef INET6
+#ifdef ENABLE_IPV6
 	case AF_INET6:
 		pfx = ((struct sockaddr_in6 *)sa)->sin6_addr.s6_addr8[0];
 		if (pfx == 0 || pfx == 0xfe || pfx == 0xff)
@@ -177,7 +177,7 @@
 			return ENI_MEMORY;
 		strcpy(host, numaddr);
 	} else {
-#ifdef INET6
+#ifdef ENABLE_IPV6
 		hp = getipnodebyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af, &h_error);
 #else
 		hp = gethostbyaddr(addr, gni_afd->a_addrlen, gni_afd->a_af);
@@ -190,13 +190,13 @@
 				if (p) *p = '\0';
 			}
 			if (strlen(hp->h_name) > hostlen) {
-#ifdef INET6
+#ifdef ENABLE_IPV6
 				freehostent(hp);
 #endif
 				return ENI_MEMORY;
 			}
 			strcpy(host, hp->h_name);
-#ifdef INET6
+#ifdef ENABLE_IPV6
 			freehostent(hp);
 #endif
 		} else {