summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2004-11-26 19:01:57 +0000
committerbrooks <brooks@FreeBSD.org>2004-11-26 19:01:57 +0000
commit1690de62c385a31ecaa8cf43e8c9210a1c297132 (patch)
tree4a55d9e69b008d35d74362296251799ccd489d5f /sys/modules
parent0aa3c6f81730f2718d8c61f1d34d33bfe921c3f0 (diff)
downloadFreeBSD-src-1690de62c385a31ecaa8cf43e8c9210a1c297132.zip
FreeBSD-src-1690de62c385a31ecaa8cf43e8c9210a1c297132.tar.gz
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>
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/if_gif/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/modules/if_gif/Makefile b/sys/modules/if_gif/Makefile
index 067f8b9..8f61b78 100644
--- a/sys/modules/if_gif/Makefile
+++ b/sys/modules/if_gif/Makefile
@@ -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}
OpenPOWER on IntegriCloud