Build if_stf(4) module only when both INET and INET6 support are enabled.

This commit is contained in:
Andrey V. Elsukov 2015-07-30 10:26:43 +00:00
parent a86e343db6
commit a5965d1513
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286069
3 changed files with 7 additions and 5 deletions

View File

@ -149,7 +149,7 @@ SUBDIR= \
${_if_me} \
if_lagg \
${_if_ndis} \
if_stf \
${_if_stf} \
if_tap \
if_tun \
if_vlan \
@ -411,6 +411,11 @@ _if_gif= if_gif
_if_gre= if_gre
.endif
.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
defined(ALL_MODULES)
_if_stf= if_stf
.endif
.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
_if_me= if_me
_ipdivert= ipdivert

View File

@ -3,6 +3,6 @@
.PATH: ${.CURDIR}/../../net
KMOD= if_stf
SRCS= if_stf.c opt_inet.h opt_inet6.h
SRCS= if_stf.c
.include <bsd.kmod.mk>

View File

@ -74,9 +74,6 @@
* Note that there is no way to be 100% secure.
*/
#include "opt_inet.h"
#include "opt_inet6.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/socket.h>