[PATCH] __FreeBSD_kernel__
Chris Rees
crees at freebsd.org
Sun Jul 3 14:39:12 UTC 2011
2011/7/3 Alexander Kabaev <kabaev at gmail.com>:
>
> __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).
Please-- Linux is not and has never been an OS.
__linux__ applies to the kernel, the OS is called GNU/Linux.
Call me pedantic, but that was a nonsensical statement.
Chris
More information about the freebsd-hackers
mailing list