git: Unbreak buildworld.

Sascha Wildner swildner at
Mon Jan 4 10:39:17 PST 2010

commit bfc2d750ac919e19b27f24c22cedba1b2ed5351a
Author: Sascha Wildner <saw at>
Date:   Sun Jan 3 14:25:32 2010 +0100

    Unbreak buildworld.
    The inclusion of <sys/eventvar.h> in <sys/proc.h> in commit
    a591f597ce2a2a0d1c8edc23e0445acfbd8a0852 broke some things
    in userland.
    <kinfo.h> defines _KERNEL_STRUCTURES. If, however, some file included
    before <kinfo.h> has code under _KERNEL_STRUCTURES that is needed by
    files which come _after_ _KERNEL_STRUCTURES is defined by <kinfo.h>,
    we break.
    In netstat(1), the solution is to remove the inclusion of <sys/protosw.h>
    (which comes in again via <net/netmsg.h> later after <kinfo.h> 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

Summary of changes:
 usr.bin/netstat/route.c     |    1 -
 usr.bin/sockstat/sockstat.c |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list