summaryrefslogtreecommitdiff
path: root/sysutils/socket/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/socket/Makefile')
-rw-r--r--sysutils/socket/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/socket/Makefile b/sysutils/socket/Makefile
index d5c1d4909c8..df242dadbfe 100644
--- a/sysutils/socket/Makefile
+++ b/sysutils/socket/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 1998/06/22 13:09:51 agc Exp $
+# $NetBSD: Makefile,v 1.6 1999/09/17 18:23:54 tron Exp $
# FreeBSD Id: Makefile,v 1.7 1997/08/16 10:14:56 wosch Exp
#
@@ -10,4 +10,16 @@ MAINTAINER= packages@netbsd.org
MAKE_ENV+= INSTALLBASE=${PREFIX}
+BUILD_DEFS+= USE_INET6
+
+# to get USE_INET6
+.include "../../mk/bsd.prefs.mk"
+
+# IPv6 support
+.if defined(USE_INET6) && ${USE_INET6} == YES
+MAKE_ENV+= SWITCHES="-DUSE_INET6 -DHAVE_SYS_PARAM_H -Wall"
+.else
+MAKE_ENV+= SWITCHES="-DHAVE_SYS_PARAM_H -Wall"
+.endif
+
.include "../../mk/bsd.pkg.mk"