patches/glibc/2.9/520-sh-no-asm-elf-header.patch
author Arnaud Lacombe <lacombar@gmail.com>
Thu Aug 05 17:59:51 2010 +0200 (2010-08-05)
changeset 2069 366bd2b22675
parent 1246 aa674ae58972
permissions -rw-r--r--
complibs/mpc: fix MPC 0.8.1 build with MPFR 3.0.0

This is the change introduced by revision 734 of MPC repository.

Author: Paul Zimmermann <Paul.Zimmermann@loria.fr>
Revision log: [acos.c] fixed problem with GMP_RNDA (should be MPFR_RNDA, and code was wrong)

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
     1 2007-03-13  Mike Frysinger  <vapier@gentoo.org>
     2 
     3 	* sysdeps/unix/sysv/linux/sh/sys/procfs.h: Copy Linux's asm-sh/elf.h types.
     4 
     5 --- glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
     6 +++ glibc-2_9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
     7 @@ -29,10 +29,19 @@
     8  #include <sys/types.h>
     9  #include <sys/ucontext.h>
    10  #include <sys/user.h>
    11 -#include <asm/elf.h>
    12  
    13  __BEGIN_DECLS
    14  
    15 +/*
    16 + * ELF register definitions...
    17 + */
    18 +typedef unsigned long elf_greg_t;
    19 +
    20 +#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
    21 +typedef elf_greg_t elf_gregset_t[ELF_NGREG];
    22 +
    23 +typedef struct user_fpu_struct elf_fpregset_t;
    24 +
    25  struct elf_siginfo
    26    {
    27      int si_signo;			/* Signal number.  */