Browse Source

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 years ago
parent
commit
4b03b0db9d
1 changed files with 5 additions and 1 deletions
  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.  */