summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-02 19:30:58 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-02 19:30:58 +0000
commitbecdcc75f97d3d4480b9317633f0a59334a15a94 (patch)
treedd25e58d648f971aa8ab90a0f56cedc738311ed0 /libc/sysdeps/linux/sh
parentc9210d381426332b9af4e7b01086dcea1fd49d05 (diff)
fixes from Carmelo AMOROSO to depend less on kernel headers
Diffstat (limited to 'libc/sysdeps/linux/sh')
-rw-r--r--libc/sysdeps/linux/sh/sys/procfs.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/sh/sys/procfs.h b/libc/sysdeps/linux/sh/sys/procfs.h
index d7cd125f8..aad21e5f8 100644
--- a/libc/sysdeps/linux/sh/sys/procfs.h
+++ b/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. */