diff options
author | bz <bz@FreeBSD.org> | 2014-11-08 14:41:32 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2014-11-08 14:41:32 +0000 |
commit | 20dab50bef3afe185b015edfa963389d32c69aee (patch) | |
tree | f8715417a761ba48befc904b137cbca0541f689f /sys/modules/if_gre/Makefile | |
parent | cfcb039e4e385eb6d4f9064f1bf5f55b5a888121 (diff) | |
download | FreeBSD-src-20dab50bef3afe185b015edfa963389d32c69aee.zip FreeBSD-src-20dab50bef3afe185b015edfa963389d32c69aee.tar.gz |
After r274246 make the tree compile again.
gcc requires variables to be initialised in two places. One of them
is correctly used only under the same conditional though.
For module builds properly check if the kernel supports INET or INET6,
as otherwise various mips kernels without IPv6 support would fail to build.
Diffstat (limited to 'sys/modules/if_gre/Makefile')
-rw-r--r-- | sys/modules/if_gre/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile index db8f9f1..54ef274 100644 --- a/sys/modules/if_gre/Makefile +++ b/sys/modules/if_gre/Makefile @@ -6,10 +6,24 @@ KMOD= if_gre SRCS= if_gre.c opt_inet.h opt_inet6.h +.if defined(KERNBUILDDIR) +OPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo +.if empty(OPT_INET) +MK_INET_SUPPORT=no +.endif +.endif + .if ${MK_INET_SUPPORT} != "no" SRCS+= ip_gre.c .endif +.if defined(KERNBUILDDIR) +OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo +.if empty(OPT_INET6) +MK_INET6_SUPPORT=no +.endif +.endif + .if ${MK_INET6_SUPPORT} != "no" SRCS+= ip6_gre.c .endif |