summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-20 13:54:41 -0400
committerAustin Foxley <austinf@cetoncorp.com>2009-08-19 12:25:04 -0700
commit7da78e4164ad2172ad8eeace1beade76f2e643da (patch)
treea94cb1006c4d446049628ae32e4573d25d45e83e /libc
parent51d96697ea8e0fd2475f9392b9247a0eafea69ea (diff)
downloaduClibc-alpine-7da78e4164ad2172ad8eeace1beade76f2e643da.tar.bz2
uClibc-alpine-7da78e4164ad2172ad8eeace1beade76f2e643da.tar.xz
alpha: fix building with no asm/elf.h
The latest sanitized linux kernel headers no longer export asm/elf.h, so do not rely on it anymore. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/alpha/sys/procfs.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/alpha/sys/procfs.h b/libc/sysdeps/linux/alpha/sys/procfs.h
index bee51f94e..2c9d119ac 100644
--- a/libc/sysdeps/linux/alpha/sys/procfs.h
+++ b/libc/sysdeps/linux/alpha/sys/procfs.h
@@ -29,10 +29,23 @@
#include <sys/types.h>
#include <sys/ucontext.h>
#include <sys/user.h>
-#include <asm/elf.h>
__BEGIN_DECLS
+/*
+ * The OSF/1 version of <sys/procfs.h> makes gregset_t 46 entries long.
+ * I have no idea why that is so. For now, we just leave it at 33
+ * (32 general regs + processor status word).
+ */
+#define ELF_NGREG 33
+#define ELF_NFPREG 32
+
+typedef unsigned long elf_greg_t;
+typedef elf_greg_t elf_gregset_t[ELF_NGREG];
+
+typedef double elf_fpreg_t;
+typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
+
struct elf_siginfo
{
int si_signo; /* Signal number. */