[uClibc] defining sysinfo struct in sys/sysinfo.h
Mike Frysinger
vapier at gentoo.org
Sun Jul 10 16:13:21 UTC 2005
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>
which bombs because while our sysinfo.h has a #ifndef _LINUX_KERNEL_H check,
the linux version does not so the struct gets redefined ...
-mike
More information about the uClibc
mailing list