]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ia64: add __ prefix to pt_all_user_regs/ia64_fpreg [BZ #762]
authorMike Frysinger <vapier@gentoo.org>
Sun, 5 Jan 2014 21:23:42 +0000 (16:23 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 13:27:08 +0000 (08:27 -0500)
This addresses a long standing collision between userspace headers and
kernel headers only on ia64 systems.  All other types have a __ prefix
in the ptrace headers except these two.  Let's finally namespace these.

Verified that at least strace still builds after this change, as well
as after deleting all the struct hacks it has specifically for ia64.

URL: https://sourceware.org/bugzilla/show_bug.cgi?id=762
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ports/sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
ports/sysdeps/unix/sysv/linux/ia64/sys/procfs.h
ports/sysdeps/unix/sysv/linux/ia64/sys/ptrace.h

index 3b8e4a7d82f4801f55de6cf67f51dcea99dd6e7a..94e608b81095f89c18edbb7888d5f507e21f8e8d 100644 (file)
@@ -27,7 +27,7 @@
 #include <stddef.h>
 #include <bits/sigstack.h>
 
-struct ia64_fpreg
+struct __ia64_fpreg
   {
     union
       {
@@ -55,7 +55,7 @@ struct sigcontext
   unsigned long int sc_pr;     /* predicate registers */
   unsigned long int sc_br[8];  /* branch registers */
   unsigned long int sc_gr[32]; /* general registers (static partition) */
-  struct ia64_fpreg sc_fr[128];        /* floating-point registers */
+  struct __ia64_fpreg sc_fr[128];      /* floating-point registers */
   unsigned long int sc_rbs_base;/* NULL or new base of sighandler's rbs */
   unsigned long int sc_loadrs; /* see description above */
   unsigned long int sc_ar25;   /* cmp8xchg16 uses this */
index 29d1c42a61a71f8cc4ef56bb1d309064012e0631..663e0b02027143020b15078ecf09a18242093c50 100644 (file)
@@ -46,7 +46,7 @@ struct elf_siginfo
 typedef unsigned long elf_greg_t;
 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 
-typedef struct ia64_fpreg elf_fpreg_t;
+typedef struct __ia64_fpreg elf_fpreg_t;
 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
 
 typedef elf_greg_t greg_t;
index cda5209f1a30787108af077a9ff30a07fe943453..4628c3fb317d4e61bac8a40f9d73bf14de2303b8 100644 (file)
@@ -144,7 +144,7 @@ enum __ptrace_flags
 };
 
 /* pt_all_user_regs is used for PTRACE_GETREGS/PTRACE_SETREGS.  */
-struct pt_all_user_regs
+struct __pt_all_user_regs
   {
     unsigned long nat;
     unsigned long cr_iip;
@@ -155,7 +155,7 @@ struct pt_all_user_regs
     unsigned long gr[32];
     unsigned long br[8];
     unsigned long ar[128];
-    struct ia64_fpreg fr[128];
+    struct __ia64_fpreg fr[128];
   };
 
 /* Options set using PTRACE_SETOPTIONS.  */