OSDN Git Service

sh/user.h: clean up conflicts from kernel user.h
authorAndrew Stubbs <ams@codesourcery.com>
Tue, 15 Sep 2009 22:02:48 +0000 (18:02 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Sep 2009 22:02:57 +0000 (18:02 -0400)
commit2b4af5d5bf440711e1b5b8329cb74631e6d65c04
tree8d92fe37eabec3fee4ee80f9ec62afc38b7d435d
parent6d6bd8ba78434ecb09395582b5f3e41febd4d4ee
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 <ams@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/sysdeps/linux/sh/sys/user.h