瀏覽代碼

powerpc: fix conflicting definitions with newer Linux kernel

Waldemar Brodkorb 9 月之前
父節點
當前提交
f82f25b334
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libc/sysdeps/linux/powerpc/sys/procfs.h

+ 1 - 1
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