Honour WITH and WITHOUT_INET6_SUPPORT.

Approved by:	glebius (mentor)
MFC after:	3 days
This commit is contained in:
cy 2014-08-05 13:01:21 +00:00
parent 3c2dc8ad2a
commit d63d43ae33
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <src.opts.mk>
WARNS?= 2
NO_WFORMAT=
NO_WARRAY_BOUNDS=
@ -10,6 +12,12 @@ CFLAGS+= -I${.CURDIR}/../../../sys
CFLAGS+= -I${.CURDIR}/../../../sys/contrib/ipfilter
CFLAGS+= -DSTATETOP -D__UIO_EXPOSE
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DUSE_INET6
.else
CFLAGS+= -DNOINET6
.endif
LIBIPF= ${.OBJDIR}/../libipf/libipf.a
DPADD+= ${LIBIPF} ${LIBKVM}
LDADD+= ${LIBIPF} -lkvm

View File

@ -118,6 +118,10 @@ struct ether_addr {
# if defined(INET6) && !defined(USE_INET6)
# define USE_INET6
# endif
# else
# if !defined(USE_INET6) && !defined(NOINET6)
# define USE_INET6
# endif
# endif
# if defined(_KERNEL)