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
10 #include <sys/types.h>
11 -#include <sys/ucontext.h>
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
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
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
47 + unsigned long fp_regs[16];
48 + unsigned long xfp_regs[16];
49 + unsigned long fpscr;
52 +typedef struct user_fpu_struct elf_fpregset_t;
56 + struct pt_regs regs;
57 + struct user_fpu_struct fpu;
62 + unsigned long start_code;
63 + unsigned long start_data;
64 + unsigned long start_stack;
66 + unsigned long u_ar0;
67 + struct user_fpu_struct *u_fpstate;
68 + unsigned long magic;
72 #endif /* sys/user.h */