Re: [PATCH] __linux__ and cross-compile

From: David Woodhouse (dwmw2@infradead.org)
Date: Sun Jan 20 2002 - 11:37:24 EST


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/



This archive was generated by hypermail 2b29 : Wed Jan 23 2002 - 21:00:38 EST