summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/sys
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2023-08-06 09:21:21 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2023-08-06 09:21:21 +0200
commitf82f25b334270abe116ba4f080a51cb026d03865 (patch)
tree2f2fa749466440c199644c7433759a1dab62d47d /libc/sysdeps/linux/powerpc/sys
parenteb532bc1b7a635932fe5cef472d0442620a173a2 (diff)
powerpc: fix conflicting definitions with newer Linux kernel
Diffstat (limited to 'libc/sysdeps/linux/powerpc/sys')
-rw-r--r--libc/sysdeps/linux/powerpc/sys/procfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/powerpc/sys/procfs.h b/libc/sysdeps/linux/powerpc/sys/procfs.h
index 7ae12e3cc..9e6ec191c 100644
--- a/libc/sysdeps/linux/powerpc/sys/procfs.h
+++ b/libc/sysdeps/linux/powerpc/sys/procfs.h
@@ -34,7 +34,7 @@ __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. */
-#ifndef __PPC64_ELF_H
+#if !defined __PPC64_ELF_H && !defined _ASM_POWERPC_ELF_H
#define ELF_NGREG 48 /* includes nip, msr, lr, etc. */
#define ELF_NFPREG 33 /* includes fpscr */
#if __WORDSIZE == 32