From bfc2d750ac919e19b27f24c22cedba1b2ed5351a Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 3 Jan 2010 14:25:32 +0100 Subject: [PATCH] Unbreak buildworld. The inclusion of in in commit a591f597ce2a2a0d1c8edc23e0445acfbd8a0852 broke some things in userland. defines _KERNEL_STRUCTURES. If, however, some file included before has code under _KERNEL_STRUCTURES that is needed by files which come _after_ _KERNEL_STRUCTURES is defined by , we break. In netstat(1), the solution is to remove the inclusion of (which comes in again via later after is included) in route.c. In sockstat(1), in lieu of a better solution, we just define _KERNEL_STRUCTURES early for now. Reported-by: lentferj --- usr.bin/netstat/route.c | 1 - usr.bin/sockstat/sockstat.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 0536935204..e441d69a6b 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -36,7 +36,6 @@ */ #include -#include #include #include diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c index 5d3546161c..a65a219817 100644 --- a/usr.bin/sockstat/sockstat.c +++ b/usr.bin/sockstat/sockstat.c @@ -30,6 +30,7 @@ * $DragonFly: src/usr.bin/sockstat/sockstat.c,v 1.7 2007/02/01 10:33:26 corecode Exp $ */ +#define _KERNEL_STRUCTURES #include #include #include -- 2.11.4.GIT