summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2009-04-21 12:47:09 +0000
committerbms <bms@FreeBSD.org>2009-04-21 12:47:09 +0000
commitd3ee88b53671e8de842534d1515aac4a0d09ea98 (patch)
tree48ed15736920028cb14df06b565acb68adc8937b /usr.bin/netstat
parent424b3895c748ff614271b486ca69dd9fd8ec49b5 (diff)
downloadFreeBSD-src-d3ee88b53671e8de842534d1515aac4a0d09ea98.zip
FreeBSD-src-d3ee88b53671e8de842534d1515aac4a0d09ea98.tar.gz
Bracket struct mfc and struct rtdetq with #ifdef _KERNEL.
Match the bracketing in netstat. Since the cleanup of MROUTING, ports have broken because they expect to include <netinet/ip_mroute.h> without including <sys/queue.h>. Fix breakage at source. The real fix, of course, is to fix the MROUTING APIs by blowing them away and replacing them with something else...
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/mroute.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/netstat/mroute.c b/usr.bin/netstat/mroute.c
index 6ea4b58..4d55cb6 100644
--- a/usr.bin/netstat/mroute.c
+++ b/usr.bin/netstat/mroute.c
@@ -59,7 +59,10 @@ __FBSDID("$FreeBSD$");
#include <netinet/in.h>
#include <netinet/igmp.h>
#include <net/route.h>
+
+#define _KERNEL 1
#include <netinet/ip_mroute.h>
+#undef _KERNEL
#include <err.h>
#include <stdint.h>
OpenPOWER on IntegriCloud