matrix-gui-e: bump PR for init file fixes
[openembedded.git] / recipes / glibc / glibc-2.9 / glibc-2.9-sh-fix.patch
blobed6da440b8e8854d516db12e11777f602e203970
1 diff -ru glibc-2.9.old/sysdeps/unix/sysv/linux/sh/sys/procfs.h glibc-2.9/sysdeps/unix/sysv/linux/sh/sys/procfs.h
2 --- glibc-2.9.old/sysdeps/unix/sysv/linux/sh/sys/procfs.h 2004-11-20 19:56:16.000000000 +0200
3 +++ glibc-2.9/sysdeps/unix/sysv/linux/sh/sys/procfs.h 2009-12-21 14:51:57.338186996 +0200
4 @@ -24,12 +24,9 @@
5 used on Linux. */
7 #include <features.h>
8 -#include <signal.h>
9 #include <sys/time.h>
10 #include <sys/types.h>
11 -#include <sys/ucontext.h>
12 #include <sys/user.h>
13 -#include <asm/elf.h>
15 __BEGIN_DECLS
17 diff -ru glibc-2.9.old/sysdeps/unix/sysv/linux/sh/sys/user.h glibc-2.9/sysdeps/unix/sysv/linux/sh/sys/user.h
18 --- glibc-2.9.old/sysdeps/unix/sysv/linux/sh/sys/user.h 2003-02-08 04:32:42.000000000 +0200
19 +++ glibc-2.9/sysdeps/unix/sysv/linux/sh/sys/user.h 2009-12-21 14:53:00.708180633 +0200
20 @@ -19,10 +19,49 @@
21 #ifndef _SYS_USER_H
22 #define _SYS_USER_H 1
24 -#include <features.h>
25 +#include <asm/ptrace.h>
27 -#include <asm/user.h>
28 +/* asm/ptrace.h polutes the namespace. */
29 +#undef PTRACE_GETREGS
30 +#undef PTRACE_SETREGS
31 +#undef PTRACE_GETFPREGS
32 +#undef PTRACE_SETFPREGS
33 +#undef PTRACE_GETFDPIC
34 +#undef PTRACE_GETFDPIC_EXEC
35 +#undef PTRACE_GETFDPIC_INTERP
36 +#undef PTRACE_GETDSPREGS
37 +#undef PTRACE_SETDSPREGS
39 -#undef start_thread
40 +typedef unsigned long elf_greg_t;
42 +#define ELF_NGREG (sizeof (struct pt_regs) / sizeof (elf_greg_t))
43 +typedef elf_greg_t elf_gregset_t[ELF_NGREG];
45 +struct user_fpu_struct
46 + {
47 + unsigned long fp_regs[16];
48 + unsigned long xfp_regs[16];
49 + unsigned long fpscr;
50 + unsigned long fpul;
51 + };
52 +typedef struct user_fpu_struct elf_fpregset_t;
54 +struct user
55 + {
56 + struct pt_regs regs;
57 + struct user_fpu_struct fpu;
58 + int u_fpvalid;
59 + size_t u_tsize;
60 + size_t u_dsize;
61 + size_t u_ssize;
62 + unsigned long start_code;
63 + unsigned long start_data;
64 + unsigned long start_stack;
65 + long int signal;
66 + unsigned long u_ar0;
67 + struct user_fpu_struct *u_fpstate;
68 + unsigned long magic;
69 + char u_comm[32];
70 + };
72 #endif /* sys/user.h */