This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] PowerPC - Fix build with linux 3.7 headers
- From: Adam Conrad <adconrad at 0c3 dot net>
- To: libc-alpha at sourceware dot org
- Date: Thu, 22 Nov 2012 21:07:26 -0700
- Subject: [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
---