This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11820] New: sys/user.h requires additional header in x86_64 to define types
- From: "allan at archlinux dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 15 Jul 2010 02:59:17 -0000
- Subject: [Bug libc/11820] New: sys/user.h requires additional header in x86_64 to define types
- Reply-to: sourceware-bugzilla at sourceware dot org
In sysdeps/unix/sysv/linux/x86_64/sys/user.h when __WORDSIZE==64, the struct
user_fpregs_struct is defined using __uintXX_t types. These are not defined in
any of its #include's so any program that includes <sys/user.h> without
including <bits/types.h> first leads to a compile failure on x86_64.
I realise that sys/user.h says "Don't use it for anything other than GDB unless
you know what you are doing", but I am unsure whether requiring an additional
include on one particular platform is covered by that...
--
Summary: sys/user.h requires additional header in x86_64 to
define types
Product: glibc
Version: 2.12
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: allan at archlinux dot org
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11820
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.