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

From: Robert Millan <rmh_at_freebsd.org>
Date: Thu, 17 Nov 2011 07:46:33 +0100
2011/11/16 Warner Losh <imp_at_bsdimp.com>:
> 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.

I'm fine with this.

> Why do you think people wouldn't be fond of the __FreeBSD_kernel__ being defined?

See archived discussion:

http://lists.freebsd.org/pipermail/freebsd-hackers/2011-July/035721.html

particularly this mail in which you participated:

http://lists.freebsd.org/pipermail/freebsd-hackers/2011-July/035823.html
Received on Thu Nov 17 2011 - 05:46:41 UTC

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