diff options
author | bms <bms@FreeBSD.org> | 2009-04-21 12:47:09 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2009-04-21 12:47:09 +0000 |
commit | d3ee88b53671e8de842534d1515aac4a0d09ea98 (patch) | |
tree | 48ed15736920028cb14df06b565acb68adc8937b /usr.bin | |
parent | 424b3895c748ff614271b486ca69dd9fd8ec49b5 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/netstat/mroute.c | 3 |
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> |