From 2b4af5d5bf440711e1b5b8329cb74631e6d65c04 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Tue, 15 Sep 2009 18:02:48 -0400 Subject: sh/user.h: clean up conflicts from kernel user.h This patch makes sufficient modifications to the SH sys/user.h to be able to build and run gdbserver with Linux kernel 2.6.30. The problem is that both the kernel and library headers define the same symbols, thus making it impossible in include both headers. The patch undefines the kernel symbols in favour of the library symbols. Signed-off-by: Andrew Stubbs Signed-off-by: Mike Frysinger --- libc/sysdeps/linux/sh/sys/user.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libc/sysdeps/linux/sh') diff --git a/libc/sysdeps/linux/sh/sys/user.h b/libc/sysdeps/linux/sh/sys/user.h index b1adc13b7..91b00916b 100644 --- a/libc/sysdeps/linux/sh/sys/user.h +++ b/libc/sysdeps/linux/sh/sys/user.h @@ -22,6 +22,17 @@ #include #include +/* asm/ptrace.h polutes the namespace. */ +#undef PTRACE_GETREGS +#undef PTRACE_SETREGS +#undef PTRACE_GETFPREGS +#undef PTRACE_SETFPREGS +#undef PTRACE_GETFDPIC +#undef PTRACE_GETFDPIC_EXEC +#undef PTRACE_GETFDPIC_INTERP +#undef PTRACE_GETDSPREGS +#undef PTRACE_SETDSPREGS + /* * Core file format: The core file is written in such a way that gdb * can understand it and provide useful information to the user (under -- cgit v1.2.3