Re: [patch] Input cleanups for 2.5.29 [2/2]

Kai Henningsen
2002-07-31T02:50:22Z

vojtech@suse.cz (Vojtech Pavlik) wrote on 30.07.02 in <20020730233907.B23181@ucw.cz>:

> On Wed, Jul 31, 2002 at 07:26:05AM +1000, Brad Hards wrote:
> > On Wed, 31 Jul 2002 07:09, Greg KH wrote:
> > > On Tue, Jul 30, 2002 at 03:23:42PM +0200, Vojtech Pavlik wrote:
> > > > -#include <asm/types.h>
> > > > +#include <stdint.h>
> > >
> > > Why? I thought we were not including any glibc (or any other libc)
> > > header files when building the kernel?
> > Should be <linux/types.h>
>
> It's #ifndef __KERNEL__ and if we #include <linux/types.h> and the user
> #includes <stdint.h> elsewhere, we're going to get collisions.
>
> I guess __u16 is really the safe way here.

Well then, I guess the thing to do for the poor ignorant user space
programmers is to have one standard header somewhere which maps the
standard Linux kernel types to standard ISO C types. No?

MfG Kai