mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
Avoid useless work: Do not build inet6.c if INET6 support is off.
This also avoids pretending that netstat includes inet6.c in the output from ident(1).
This commit is contained in:
parent
cd5297916c
commit
b7dd94d5e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160780
|
@ -4,7 +4,7 @@
|
|||
.include <bsd.own.mk>
|
||||
|
||||
PROG= netstat
|
||||
SRCS= if.c inet.c inet6.c main.c mbuf.c mcast.c mroute.c route.c \
|
||||
SRCS= if.c inet.c main.c mbuf.c mcast.c mroute.c route.c \
|
||||
unix.c atalk.c netgraph.c mroute6.c ipsec.c bpf.c pfkey.c
|
||||
|
||||
WARNS?= 2
|
||||
|
@ -12,7 +12,9 @@ NO_WERROR=
|
|||
|
||||
CFLAGS+=-DIPSEC
|
||||
CFLAGS+=-DFAST_IPSEC
|
||||
|
||||
.if ${MK_INET6_SUPPORT} != "no"
|
||||
SRCS+= inet6.c
|
||||
CFLAGS+=-DINET6
|
||||
.endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue