summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ifmcstat/Makefile
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2007-04-10 00:26:12 +0000
committerbms <bms@FreeBSD.org>2007-04-10 00:26:12 +0000
commit84121b90712f942d2525e9acdf31d8cb47c4e6ef (patch)
tree2e2747af71c0c7692da1784180651d66a1770b3b /usr.sbin/ifmcstat/Makefile
parent2ffc30645ae11e23b51eee230c0f87a3c3450e18 (diff)
downloadFreeBSD-src-84121b90712f942d2525e9acdf31d8cb47c4e6ef.zip
FreeBSD-src-84121b90712f942d2525e9acdf31d8cb47c4e6ef.tar.gz
Considerably rework the ifmcstat utility.
* Build with or without INET, INET6, or KVM features. * When built without KVM, the sysctl-based getifmaddrs() function is used as the back-end for the utility. * Reflect the fact that FreeBSD now uses the in_multi refcount as a true refcount. * Style. The utility may now be run without super-user privilege, albeit with a less detailed display, equivalent to that of the soon-to-be-retired netstat -g host-mode output. MFC after: 3 weeks
Diffstat (limited to 'usr.sbin/ifmcstat/Makefile')
-rw-r--r--usr.sbin/ifmcstat/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/ifmcstat/Makefile b/usr.sbin/ifmcstat/Makefile
index 8324a0b..1f8c2a5 100644
--- a/usr.sbin/ifmcstat/Makefile
+++ b/usr.sbin/ifmcstat/Makefile
@@ -11,7 +11,10 @@ WARNS?= 2
CFLAGS+=-DINET6
.endif
+.if !defined(MK_KVM_SUPPORT) || ${MK_KVM_SUPPORT} != "no"
+CFLAGS+=-DWITH_KVM
DPADD= ${LIBKVM}
LDADD= -lkvm
+.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud