[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] [PATCH]libbb/loop.c FIX for PowerPC
From:       Takeharu KATO <takeharu1219 () ybb ! ne ! jp>
Date:       2004-12-23 9:39:27
Message-ID: 41CA924F.20401 () ybb ! ne ! jp
[Download RAW message or body]

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



["busybox-loop_c.patch" (text/x-patch)]

--- busybox-current/libbb/loop.c	2004-12-10 08:12:00.000000000 +0900
+++ busybox-current.fix/libbb/loop.c	2004-12-23 17:25:45.000000000 +0900
@@ -19,7 +19,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
-#include <asm/posix_types.h>
+#include <linux/posix_types.h>
 #include <stdio.h>
 #include <errno.h>
 #include <fcntl.h>


_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic