auxstats: fix OpenBSD by using getifaddrs(3) instead of kvm(3)

Change-Id: I6a096ba24809a402911c30406d384d16c03fc96c
Reviewed-on: https://plan9port-review.googlesource.com/1410
Reviewed-by: Russ Cox <rsc@swtch.com>
This commit is contained in:
Gleydson Soares 2015-12-07 08:32:05 -03:00 committed by Russ Cox
parent 6a93bd5c92
commit 009b0cb5eb
2 changed files with 26 additions and 77 deletions

View file

@ -12,6 +12,6 @@ HFILES=\
<$PLAN9/src/mkone
KVM=`{if uname |egrep 'BSD' >/dev/null; then echo -lkvm; fi}
KVM=`{if uname |egrep 'BSD' | egrep -v 'OpenBSD' >/dev/null; then echo -lkvm; fi}
LDFLAGS=$LDFLAGS $KVM