[uClibc] defining sysinfo struct in sys/sysinfo.h

Mike Frysinger vapier at gentoo.org
Mon Jul 11 15:47:03 MDT 2005


On Monday 11 July 2005 03:23 pm, Erik Andersen wrote:
> On Sun Jul 10, 2005 at 12:13:21PM -0400, Mike Frysinger wrote:
> > we currently define the sysinfo struct in the sys/sysinfo.h header file
> > ... the comment there indicates binary compat issues with linux-2.4 ...
> >
> > glibc simply includes the linux/sysinfo.h header file to get the struct
> > ... is this something we really need worry about anymore ?  i mean, if it
> > works for
> >
> > >=linux-2.4, is it something we need worry about ?  is <=linux-2.2 still
> > > a
> >
> > supported target ?
> >
> > the issue we noticed is that some apps do:
> > #include <sys/sysinfo.h>
> > #include <linux/sysinfo.h>
>
> User space apps should never include linux/sysinfo.h or
> for that matter any other linux kernel header file.  Apps
> that do such things are broken.

ah, fair enough ... this is why i like to e-mail the list before doing things 
sometimes so others can hit me on the head and point out the obvious :)
-mike


More information about the uClibc mailing list