Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers

看板FB_current作者時間14年前 (2011/11/17 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/24 (看更多)
Hey Robert, Thanks for jumping into this. Sadly, it is a bit of a mess. Many of = the "multiple BSD flavor" support #ifdefs are actually quite stale by = now, so they should be cleaned up. That's not something you have to = cope with, unless you want, but it colors my first reaction :) My second reaction was why not have #ifndef __FreeBSD_kernel__ #define __FreeBSD_kernel__ __FreeBSD__ #endif in sys/param.h and then just change __FreeBSD__ to __FreeBSD_kernel__ in = the headers that are affected? But I'm not quite sure what effects that = would have on your environment. Thanks for considering the above modification. Warner On Nov 16, 2011, at 10:27 AM, Robert Millan wrote: > Hi! >=20 > Out of the kernel headers that are installed in /usr/include/ = hierracy, there > are some which include support multiple operating systems (usually = FreeBSD and > other *BSD flavours). >=20 > This patch adds support to detect GNU/kFreeBSD as well. In all cases, = we > match the same declarations as FreeBSD does (which is to be expected = in kernel > headers, since both systems share the same kernel). >=20 > Does it look fine? > = <gnu-kfreebsd_headers.diff>_______________________________________________= > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to = "freebsd-arch-unsubscribe@freebsd.org" _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1En0Xk3u (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 4 之 24 篇):
文章代碼(AID): #1En0Xk3u (FB_current)