Date: Sun, 03 Jul 2011 12:45:12 -0700 From: Julian Elischer <julian@freebsd.org> To: Alexander Kabaev <kabaev@gmail.com> Cc: Garrett Cooper <yanegomi@gmail.com>, freebsd-hackers@freebsd.org, Millan <rmh@debian.org>, Ed Maste <emaste@freebsd.org>, Robert@freebsd.org Subject: Re: [PATCH] __FreeBSD_kernel__ Message-ID: <4E10C6C8.30007@freebsd.org> In-Reply-To: <20110703103531.4a553271@kan.dnsalias.net> References: <CAOfDtXPUxQO1zbnxh8sh%2By7g=d8QaH2svYtEQJ06L4d%2BQKG8VA@mail.gmail.com> <20110702193724.5c55a6c9@kan.dnsalias.net> <20110703020827.GA5763@sandvine.com> <CAGH67wQAv4Tf8HjccN2GZzgD2u1ZrORABtGehxXjeg109%2BRNWQ@mail.gmail.com> <20110703103531.4a553271@kan.dnsalias.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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__)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E10C6C8.30007>