summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-09-26 11:37:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-09-26 11:37:02 +0200
commit4b03b0db9d9eded088f3c70b4127447f1097de79 (patch)
tree7b65f4d13d85f2441ca89c083896197f1c25baed /libc
parent077b37591f53a16705a6ddab10bcee80e067ca2f (diff)
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.
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/cris/sys/procfs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/cris/sys/procfs.h b/libc/sysdeps/linux/cris/sys/procfs.h
index d4ee05134..65b57ba4e 100644
--- a/libc/sysdeps/linux/cris/sys/procfs.h
+++ b/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. */