diff options
author | 2021-03-17 09:03:51 +0000 | |
---|---|---|
committer | 2021-03-17 09:03:51 +0000 | |
commit | 1fcbb6f626e03942996d252fbb924eafccbfe577 (patch) | |
tree | a62c463ea552d6f7fd0eaf17c892e7849f9e152b | |
parent | Always use an allocated buffer for {Read,Write}Blocks() to make (diff) | |
download | wireguard-openbsd-1fcbb6f626e03942996d252fbb924eafccbfe577.tar.xz wireguard-openbsd-1fcbb6f626e03942996d252fbb924eafccbfe577.zip |
Netstat wants to access kernel internal structures for the kvm walker of
the routing table. Define _KERNEL around the net/route.h include.
OK florian@
-rw-r--r-- | usr.bin/netstat/route.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 5ae4751fe58..dc3a8caed50 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.106 2020/12/29 19:51:52 benno Exp $ */ +/* $OpenBSD: route.c,v 1.107 2021/03/17 09:03:51 claudio Exp $ */ /* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */ /* @@ -37,7 +37,9 @@ #include <net/if.h> #include <net/if_types.h> +#define _KERNEL #include <net/route.h> +#undef _KERNEL #include <netinet/ip_ipsp.h> #include <netinet/in.h> #include <arpa/inet.h> |