summaryrefslogtreecommitdiffstats
path: root/sys/modules/ipdivert/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/ipdivert/Makefile')
-rw-r--r--sys/modules/ipdivert/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/modules/ipdivert/Makefile b/sys/modules/ipdivert/Makefile
index 203b4bf..886802a 100644
--- a/sys/modules/ipdivert/Makefile
+++ b/sys/modules/ipdivert/Makefile
@@ -3,6 +3,11 @@
.PATH: ${.CURDIR}/../../netinet
KMOD= ipdivert
-SRCS= ip_divert.c
+SRCS= ip_divert.c opt_inet6.h
+
+.if !defined(KERNBUILDDIR)
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud