Andrey> On Tue, Jun 27, 2000 at 02:12:23PM +0200, Ralf Baechle wrote:
>> Only the libc definitions and never the kernel definitions. With a
>> few exceptions applications shouldn't include any definitions from
>> <linux/...> or <asm/...>.
Andrey> Ralf, it may be a surprise for you :-), but glibc-2.0 includes
Andrey> <asm/resource.h> from its <resourcebits.h>. Yes, glibc
Andrey> headers conflit with kernel ones very often. There is a
Andrey> solution other than mentioned by Ralf. Do not include libc
Andrey> headers.
It's not really a problem that glibc includes the file in question,
however it should not rely on the kernel defining the value. I think we
solved the problem on glibc/ia64 by doing an #undef just before
defining the value ourselves.
Jes
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/