This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/140] New: <sys/sysctl.h> and <sys/sysinfo.h> incompatibility
- From: "Rajeev_Pillai at NAI dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 29 Apr 2004 14:17:35 -0000
- Subject: [Bug libc/140] New: <sys/sysctl.h> and <sys/sysinfo.h> incompatibility
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
One cannot #include <sys/sysctl.h> before <sys/sysinfo.h> on
Linux because <sys/sysctl.h> in glibc-2.3.2 #defines _LINUX_KERNEL_H
which causes the inclusion of <sys/sysinfo.h> to be skipped.
The following program demonstrates:
#include <sys/sysctl.h>
#include <sys/sysinfo.h>
int
main(int argc, char* argv[])
{
struct sysinfo si;
sysinfo(&si);
return 0;
}
}
--
Summary: <sys/sysctl.h> and <sys/sysinfo.h> incompatibility
Product: glibc
Version: 2.3.2
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: Rajeev_Pillai at NAI dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://sources.redhat.com/bugzilla/show_bug.cgi?id=140
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.