[PATCH] __FreeBSD_kernel__

Julian Elischer julian at freebsd.org
Sun Jul 3 19:45:29 UTC 2011


On 7/3/11 7:35 AM, Alexander Kabaev wrote:
> __linux__ is exactly what __FreeBSD__ is and dies not identify kernel
> but rather Linux as whole OS, whatever that might be these days.
>
> There does not appear to be an universal macro that identifies
> environment as using Linux kernel regardless of the rest of components
> used (say, to identify Android and Ubuntu or something embedded with
> ucLibc as running Linux kernel with different userland
> implementations).
I thought it was (__linux__ && __KERNEL__)




More information about the freebsd-hackers mailing list