From b7dd94d5e67502107c90bba8def03d7ca8fc0b65 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Fri, 28 Jul 2006 11:09:21 +0000 Subject: [PATCH] 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). --- usr.bin/netstat/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/netstat/Makefile b/usr.bin/netstat/Makefile index 5bafeea3075..913acfa0364 100644 --- a/usr.bin/netstat/Makefile +++ b/usr.bin/netstat/Makefile @@ -4,7 +4,7 @@ .include 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