diff options
author | yar <yar@FreeBSD.org> | 2006-07-28 11:09:21 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-07-28 11:09:21 +0000 |
commit | 796fd4097a98079313d50a0e0d4e9c4d6f7da45b (patch) | |
tree | 4ab5fd50a0de2fa102d1bdac41823ed21935ef43 /usr.bin | |
parent | a487647bea0971fdc3f5a2314c24062da2b76c79 (diff) | |
download | FreeBSD-src-796fd4097a98079313d50a0e0d4e9c4d6f7da45b.zip FreeBSD-src-796fd4097a98079313d50a0e0d4e9c4d6f7da45b.tar.gz |
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).
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/netstat/Makefile b/usr.bin/netstat/Makefile index 5bafeea..913acfa 100644 --- a/usr.bin/netstat/Makefile +++ b/usr.bin/netstat/Makefile @@ -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 |