[PATCH] Detect GNU/kFreeBSD in user-visible kernel headers (v2)

Robert Millan rmh at freebsd.org
Thu Nov 24 18:58:12 UTC 2011


Hi Bruce,

2011/11/24 Bruce Evans <brde at optusnet.com.au>:
> Now it adds lots of namespace pollution (all of <sys/param.h>, including
> all of its namespace pollution), just to get 1 new symbol defined.

Well, my initial patch (see mail with same subject modulo "v2") didn't
have this problem.  Now that __FreeBSD_kernel__ is defined, many
#ifdefs can be simplified, but maybe it's not desireable for all of
them.  At least not until we can rely on the compiler to define this
macro.

So in this particular case maybe it's better to use the other approach?

See attachment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnu-kfreebsd_headers.diff
Type: text/x-diff
Size: 26766 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20111124/c9660061/gnu-kfreebsd_headers.bin


More information about the freebsd-arch mailing list