This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/140] New: <sys/sysctl.h> and <sys/sysinfo.h> incompatibility


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]