patches/glibc/2.9/520-sh-no-asm-elf-header.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jan 17 23:06:02 2010 +0100 (2010-01-17)
changeset 1740 c57458bb354d
parent 1246 aa674ae58972
permissions -rw-r--r--
configure: do not require hg when configuring in an hg clone

When configuring in an hg clone, we need hg to compute the version string.
It can happen that users do not have Mercurial (eg. if they got a snapshot
rather that they did a full clone). In this case, we can still run, of
course, so simply fill the version string with a sufficiently explicit
value, that does not require hg. The date is a good candidate.
yann@1246
     1
2007-03-13  Mike Frysinger  <vapier@gentoo.org>
yann@1246
     2
yann@1246
     3
	* sysdeps/unix/sysv/linux/sh/sys/procfs.h: Copy Linux's asm-sh/elf.h types.
yann@1246
     4
yann@1246
     5
--- glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
yann@1246
     6
+++ glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
yann@1246
     7
@@ -29,10 +29,19 @@
yann@1246
     8
 #include <sys/types.h>
yann@1246
     9
 #include <sys/ucontext.h>
yann@1246
    10
 #include <sys/user.h>
yann@1246
    11
-#include <asm/elf.h>
yann@1246
    12
 
yann@1246
    13
 __BEGIN_DECLS
yann@1246
    14
 
yann@1246
    15
+/*
yann@1246
    16
+ * ELF register definitions...
yann@1246
    17
+ */
yann@1246
    18
+typedef unsigned long elf_greg_t;
yann@1246
    19
+
yann@1246
    20
+#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
yann@1246
    21
+typedef elf_greg_t elf_gregset_t[ELF_NGREG];
yann@1246
    22
+
yann@1246
    23
+typedef struct user_fpu_struct elf_fpregset_t;
yann@1246
    24
+
yann@1246
    25
 struct elf_siginfo
yann@1246
    26
   {
yann@1246
    27
     int si_signo;			/* Signal number.  */