Re: [PATCH] __linux__ and cross-compile

Adrian Bunk (bunk@fs.tum.de)
Sun, 20 Jan 2002 15:23:52 +0100 (CET)


On 20 Jan 2002, Momchil Velikov wrote:

> Hi there,
>
> The following patch fixes compilation/miscompilation problems, which
> may happend iwtg variuos cross compile configuration, wherte the
> compiler used to compile the kernel does not necessarily define
> __linux__. The patch replaces __linux__ with __KERNEL__, using

Isn't this a compiler bug?

> __KERNEL_ as an indication that the source is compiled as a part of
>...

This is definitely wrong in files that are not Linux-specific and that are
used on FreeBSD (and BSDI) as well (you would know that if you'd looked at
the files your patch changes)...

cu
Adrian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/