Browse Source

fixes from Carmelo AMOROSO to depend less on kernel headers

Mike Frysinger 17 years ago
parent
commit
becdcc75f9
1 changed files with 10 additions and 1 deletions
  1. 10 1
      libc/sysdeps/linux/sh/sys/procfs.h

+ 10 - 1
libc/sysdeps/linux/sh/sys/procfs.h

@@ -29,10 +29,19 @@
 #include <sys/types.h>
 #include <sys/ucontext.h>
 #include <sys/user.h>
-#include <asm/elf.h>
 
 __BEGIN_DECLS
 
+/*
+ * ELF register definitions...
+ */
+typedef unsigned long elf_greg_t;
+
+#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
+typedef elf_greg_t elf_gregset_t[ELF_NGREG];
+
+typedef struct user_fpu_struct elf_fpregset_t;
+
 struct elf_siginfo
   {
     int si_signo;			/* Signal number.  */