This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Update check for <asm/elf.h>
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: libc-alpha at sourceware dot org
- Date: Tue, 30 Oct 2012 22:06:36 +0100
- Subject: [PATCH] Update check for <asm/elf.h>
3.7 renamed the inclusion guard of <asm/elf.h>.
Andreas.
* sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Also check for
_UAPI_ASM_POWERPC_ELF_H.
diff --git a/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h b/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h
index dc41bdf..fc508f7 100644
--- a/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h
+++ b/sysdeps/unix/sysv/linux/powerpc/sys/procfs.h
@@ -34,7 +34,8 @@ __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
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."