[PATCH] sh: fix build after changes made on rev 18095

Mike Frysinger vapier at gentoo.org
Sun Mar 25 06:13:49 PDT 2007


On Monday 19 March 2007, Carmelo AMOROSO wrote:
> the change made on libc/sysdeps/linux/sh/user.h brakes build on sh4,
> due to redefinition of 'user_fpu_struct' and 'user' structs caused
> by the following include chain:
>
> sys/procfs.h -> asm/elf.h -> asm/user.h
> sys/procfs.h -> asm/user.h
>
> Simply removing the asm/user.h include from procfs.h it compiles again.
> The attached patch solves it and add some other minor changes grabbed
> from glibc.

i feel like this just delays the problem ... when random source XXX includes 
sys/user.h and sys/procfs.h (which is quite legit), it'll fall apart

why not replace asm/elf.h in favor of elf.h ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20070325/ff31efa8/attachment.pgp 


More information about the uClibc mailing list