diff options
author | brooks <brooks@FreeBSD.org> | 2004-11-26 19:01:57 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2004-11-26 19:01:57 +0000 |
commit | 1690de62c385a31ecaa8cf43e8c9210a1c297132 (patch) | |
tree | 4a55d9e69b008d35d74362296251799ccd489d5f | |
parent | 0aa3c6f81730f2718d8c61f1d34d33bfe921c3f0 (diff) | |
download | FreeBSD-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>
-rw-r--r-- | sys/modules/if_gif/Makefile | 9 |
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} |