]> git.wh0rd.org Git - patches.git/blobdiff - 1510_all_glibc-hppa-no-asm-elf-header.patch
more random patches. who knows.
[patches.git] / 1510_all_glibc-hppa-no-asm-elf-header.patch
diff --git a/1510_all_glibc-hppa-no-asm-elf-header.patch b/1510_all_glibc-hppa-no-asm-elf-header.patch
new file mode 100644 (file)
index 0000000..38d6ffd
--- /dev/null
@@ -0,0 +1,27 @@
+--- ports/sysdeps/unix/sysv/linux/hppa/sys/procfs.h
++++ ports/sysdeps/unix/sysv/linux/hppa/sys/procfs.h
+@@ -33,7 +33,6 @@
+ #include <sys/types.h>
+ #include <sys/ucontext.h>
+ #include <sys/user.h>
+-#include <asm/elf.h>
+ __BEGIN_DECLS
+@@ -52,6 +50,16 @@
+    but more Linuxy, with things that Linux does not support and which
+    GDB doesn't really use excluded.  */
++
++#define ELF_NGREG 80    /* We only need 64 at present, but leave space
++                              for expansion. */
++typedef unsigned long elf_greg_t;
++typedef elf_greg_t elf_gregset_t[ELF_NGREG];
++
++#define ELF_NFPREG 32
++typedef double elf_fpreg_t;
++typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
++
+ struct elf_prstatus
+   {
+     struct elf_siginfo pr_info;               /* Info associated with signal.  */