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

From: Robert Millan <rmh_at_debian.org>
Date: Tue, 22 Nov 2011 18:59:19 +0100
2011/11/22 John Baldwin <jhb_at_freebsd.org>:
> Is __FreeBSD_version defined if __FreeBSD_kernel__ is defined on kFreeBSD?

Not currently (except for kernel-space code), but if all the checks
that use __FreeBSD_version are like the one you describe, I think it'd
make sense.

But we need to make sure that defining it wouldn't suddenly enable
code that is intended for FreeBSD userland, like it happens with
__FreeBSD__.

It'd also have to be discussed on Debian mailing list.  My first
impression is that defining it could be useful in some situations.  We
just don't run into this kind of situation so often, so this
possibility AFAIK has never been discussed.  I had it in my TODO to
bring it up.

-- 
Robert Millan
Received on Tue Nov 22 2011 - 16:59:20 UTC

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