This is the mail archive of the libc-alpha@sourceware.org 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] PowerPC - Fix build with linux 3.7 headers


The following simple patch fixes the build against linux 3.7 headers,
where _ASM_POWERPC_ELF_H was renamed to _UAPI_ASM_POWERPC_ELF_H.

Already tested and working in the current Ubuntu development series.

2012-11-22  Adam Conrad  <adconrad@0c3.net>

       * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Support
       _UAPI_ASM_POWERPC_ELF_H in the Linux 3.7 headers.

---
index dc41bdf..a8f9878 100644
--- a/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h
+++ b/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h
@@ -34,7 +34,9 @@ __BEGIN_DECLS
 /* These definitions are normally provided by ucontext.h via 
    asm/sigcontext.h, asm/ptrace.h, and asm/elf.h.  Otherwise we define 
    them here.  */ 
-#if !defined __PPC64_ELF_H && !defined _ASM_POWERPC_ELF_H
+#if !defined __PPC64_ELF_H \
+    && !defined _ASM_POWERPC_ELF_H \
+    && !defined _UAPI_ASM_POWERPC_ELF_H
 #define ELF_NGREG       48      /* includes nip, msr, lr, etc. */
 #define ELF_NFPREG      33      /* includes fpscr */
 #if __WORDSIZE == 32
---


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