Make sure that we don't define INET6 when NO_INET6 is defined.

Without this change, when running netstat with a kernel without
INET6 built in, you will get a complain at the end of "netstat -s"
output.

X-MFC:		NO_INET6 was called "NOINET6" on RELENG_5
This commit is contained in:
Xin LI 2005-01-22 19:35:48 +00:00
parent 75337a5677
commit 980b4f7474
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140624

View File

@ -5,7 +5,9 @@ PROG= netstat
SRCS= if.c inet.c inet6.c main.c mbuf.c mcast.c mroute.c ipx.c route.c \
unix.c atalk.c netgraph.c mroute6.c ipsec.c
CFLAGS+=-DIPSEC
.if !defined(NO_INET6)
CFLAGS+=-DINET6
.endif
WARNS?= 2
NO_WERROR=