$NetBSD$

--- linc2/src/linc-compat.h.orig	2007-07-29 18:12:41.000000000 +0100
+++ linc2/src/linc-compat.h
@@ -108,6 +108,10 @@
 #  define INADDR_NONE (-1)
 #endif
 
+#if defined(AF_INET6) && !defined (INET6)
+#  undef AF_INET6
+#endif
+
 #if !defined (UNIX_PATH_MAX)
 /* UNP: 14.2 - Posix.1g at least 100 bytes */
 #  define LINK_UNIX_PATH_MAX 100
