[BusyBox] [PATCH]libbb/loop.c FIX for PowerPC

Takeharu KATO takeharu1219 at ybb.ne.jp
Thu Dec 23 09:39:27 UTC 2004


Hi

I found that busybox could not build for PowerPC Family.
-- Outputs of this compilation error
In file included from
/opt/cross/ppc440/build/busybox-current/libbb/loop.c:22:
/opt/cross/ppc440/bin/../lib/gcc/powerpc-440-linux-gnu/3.4.4/../../../../
powerpc-440-linux-gnu/sys-include/asm/posix_types.h:60: error: syntax
error before "__kernel_fd_set"
-- 

To fix this, I wrote the patch which is attached with this mail.
Please apply this patch.
FYI, I tested this patch for PowerPC405/PowerPC440 familiy.

Details of this fix is shown as follow.

The reason of this is that libbb/loop.c includes asm/posix_types.h,
but the header file needs __kernel_fd_set which is defined in
linux/posix_types.h .

IMHO, libbb/loop.c has better to include linux/posix_types.h insead of
asm/posix_types.h directly, becouse asm/posix_types.h is included
from linux/posix_types.h automatically.

--
Takeharu KATO


-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-loop_c.patch
Type: text/x-patch
Size: 365 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20041223/e014a7ec/attachment.bin 


More information about the busybox mailing list