Module Name: src Committed By: he Date: Wed Dec 15 09:15:05 UTC 2010
Modified Files: src/usr.bin/netstat: Makefile Log Message: Make this build with CRUNCHEDPROG defined, and default to the sysctl() method of fetching information. Apparently we can't simply not define the prog_ops struct in this program. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/usr.bin/netstat/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/netstat/Makefile diff -u src/usr.bin/netstat/Makefile:1.30 src/usr.bin/netstat/Makefile:1.31 --- src/usr.bin/netstat/Makefile:1.30 Mon Dec 13 21:15:30 2010 +++ src/usr.bin/netstat/Makefile Wed Dec 15 09:15:05 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.30 2010/12/13 21:15:30 pooka Exp $ +# $NetBSD: Makefile,v 1.31 2010/12/15 09:15:05 he Exp $ # from: @(#)Makefile 8.1 (Berkeley) 6/12/93 .include <bsd.own.mk> @@ -23,6 +23,10 @@ RUMPSRCS+= sysctlbyname.c sysctlgetmibinfo.c sysctlnametomib.c RUMPSRCS+= if_indextoname.c getifaddrs.c +.if defined(CRUNCHEDPROG) +SRCS+= netstat_hostops.c +.endif + .if (${USE_INET6} != "no") CPPFLAGS+= -DINET6 .endif