Re: [PATCH] __linux__ and cross-compile

David Woodhouse (dwmw2@infradead.org)
Sun, 20 Jan 2002 16:37:24 +0000


bunk@fs.tum.de said:
> It's clear that code that is part of an "#ifndef __linux__" will
> never be included on any other OS than Linux.

True. But unfortunately that's not a useful guarantee. This code doesn't
(normally) run _on_ Linux. It is _in_ Linux, and it's still possible that
the offending code won't get included when it should.

> Is this also garuanteed for "#ifndef __KERNEL__"?

We think *BSD uses _KERNEL, and don't know of anything else which defines
__KERNEL__ other than Linux. So he's switching from something that's known
broken to something which we _believe_ will be reliable.

--
dwmw2

- 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/