Allow the gif module to be built without IPv6 support when NOINET6 is

defined.

Submitted by:	mitrohin a.s. <swp at uni-altai dot ru>
This commit is contained in:
brooks 2004-11-26 19:01:57 +00:00
parent 0aa3c6f817
commit 1690de62c3

@ -3,14 +3,21 @@
.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
KMOD= if_gif
SRCS= if_gif.c in_gif.c in6_gif.c opt_inet.h opt_inet6.h opt_mac.h \
SRCS= if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mac.h \
opt_mrouting.h
.if !defined(NOINET6)
SRCS+= in6_gif.c
.endif
opt_inet.h:
echo "#define INET 1" > ${.TARGET}
opt_inet6.h:
.if !defined(NOINET6)
echo "#define INET6 1" > ${.TARGET}
.else
echo "" > ${.TARGET}
.endif
opt_mrouting.h:
echo "#define MROUTING 1" > ${.TARGET}