This is the mail archive of the libc-alpha@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]

[PATCH] PPC fix procfs.h, asm/elf.h conflict


The 2.6.0 kernel include/asm-ppc/elf.h defines typedef elf_vrreg_t which is then redefined by sysdeps/unix/sysv/linux/powerpc/sys/procfs.h which results a multitute of warnings. The solution is to change procfs.h to extent the scope of the existing #ifndef __PPC64_ELF_H to include the typedef elf_vrreg_t.

2003-12-16  Steven Munroe  <sjmunroe@us.ibm.com>

	* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h [!__PPC64_ELF_H]: Extent
	conditional to include typedef elf_vrreg_t.

diff -urN libc23-cvstip-20031216/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h libc23/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h
--- libc23-cvstip-20031216/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	2003-01-12 02:24:23.000000000 -0600
+++ libc23/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h	2003-12-17 12:09:15.000000000 -0600
@@ -45,7 +45,6 @@
 
 typedef double elf_fpreg_t;
 typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
-#endif
 
 /* gcc 3.1 and newer support __uint128_t.  */
 #if !__GNUC_PREREQ(3,1)
@@ -57,6 +56,7 @@
 /* Altivec registers */
 typedef __uint128_t elf_vrreg_t;
 typedef elf_vrreg_t elf_vrregset_t[ELF_NVRREG];
+#endif
 
 struct elf_siginfo
   {

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