فهرست منبع

cris: do not include asm/elf.h

elf.h is not exported by the Linux kernel, do not include
it here. Done like in other architectures.
Waldemar Brodkorb 11 سال پیش
والد
کامیت
4b03b0db9d
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      libc/sysdeps/linux/cris/sys/procfs.h

+ 5 - 1
libc/sysdeps/linux/cris/sys/procfs.h

@@ -28,10 +28,14 @@
 #include <sys/types.h>
 #include <sys/ucontext.h>
 #include <sys/user.h>
-#include <asm/elf.h>
 
 __BEGIN_DECLS
 
+typedef unsigned long elf_greg_t;
+
+#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t))
+typedef elf_greg_t elf_gregset_t[ELF_NGREG];
+
 struct elf_siginfo
   {
     int si_signo;			/* Signal number.  */