git: Unbreak buildworld.

看板DFBSD_commit作者時間16年前 (2010/01/05 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
commit bfc2d750ac919e19b27f24c22cedba1b2ed5351a Author: Sascha Wildner <saw@online.de> 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(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bfc2d750ac919e19b27f24c22cedba1b2ed5351a -- DragonFly BSD source repository
文章代碼(AID): #1BGZhpYP (DFBSD_commit)
文章代碼(AID): #1BGZhpYP (DFBSD_commit)