[SH][PATCH] fix headers for new kernel headers
Andrew Stubbs
ams@codesourcery.com
Thu Feb 26 15:22:00 GMT 2009
>> I tried Andrew's patch. It worked for compiling glibc itself, but
>> 'struct user' is needed for compile native gdb. So I modified the patch as follows
>> and then succeeded.
I tried your patch and it did not work for me. The problem is that
including asm/ptrace.h polutes the namespace and prevents use of
ptrace.h from glibc.
This patch is a combination of the two patches, with fixes for my problems.
This patch includes some #undef directives to sort out the namespace
clashes. I know there were objections to this idea when I posted
something like this before, but really, I can't find a better solution.
It may be better to patch the kernel headers, but, in reality, people
don't (can't) always use the latest kernel, and it's much better to fix
glibc to work with all recent kernels anyway.
If I don't use asm/ptrace.h then I have to copy pretty much the entire
contents into glibc, but if I do use asm/ptrace.h there are a few
problem macros which aren't going to just go away.
There's a precident for doing this; sparc has the same problem.
Hopefully I've also fixed all the formatting issues.
Please approve and apply this version.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-kernel-update.patch
Type: text/x-diff
Size: 3607 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20090226/935f786e/attachment.bin>
More information about the Libc-alpha
mailing list