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

From: Robert Millan <rmh_at_freebsd.org>
Date: Thu, 24 Nov 2011 19:58:11 +0100
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.

Received on Thu Nov 24 2011 - 17:58:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:21 UTC