Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/netstat Make this build with CRUNCHEDPROG defined, a...



details:   https://anonhg.NetBSD.org/src/rev/9fa0ba822e59
branches:  trunk
changeset: 759714:9fa0ba822e59
user:      he <he%NetBSD.org@localhost>
date:      Wed Dec 15 09:15:05 2010 +0000

description:
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.

diffstat:

 usr.bin/netstat/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r e8de32c54e38 -r 9fa0ba822e59 usr.bin/netstat/Makefile
--- a/usr.bin/netstat/Makefile  Wed Dec 15 08:09:23 2010 +0000
+++ b/usr.bin/netstat/Makefile  Wed Dec 15 09:15:05 2010 +0000
@@ -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



Home | Main Index | Thread Index | Old Index