On Saturday 06 September 2008 14:44, Vic wrote:
> Hi All.
> 
> I'm trying to build BusyBox on a RHEL4 rebuild - kernel is
> kernel-2.6.9-67.0.1.EL, gcc is gcc-3.4.6-8.
> 
> I *think* I'm building BB version 1.12.0.svn - I got it with the latest
> build of mkCDrec.
> 
> The build fails - I get errors like "`IFNAMSIZ' undeclared here"; 
> IFNAMSIZ is declared in <net/if.h>
> 
> Now looking through networking/ifenslave.c (which is the bit that fails),
> I can't for the life of me work out where <net/if.h> ought to be included.
> And, checking with gcc -E, it isn't :-(

Apparently networking/ifenslave.c simply forgot to include it.\
Does this patch help?
--
vda
diff -d -urpN busybox.5/networking/ifenslave.c busybox.6/networking/ifenslave.c
--- busybox.5/networking/ifenslave.c	2008-09-05 06:59:10.000000000 +0200
+++ busybox.6/networking/ifenslave.c	2008-09-06 16:43:17.000000000 +0200
@@ -100,14 +100,15 @@
 
 #include "libbb.h"
 
+#include <net/if.h>
 #include <net/if_arp.h>
 #include <linux/if_bonding.h>
 #include <linux/sockios.h>
 
-typedef unsigned long long u64; /* hack, so we may include kernel's ethtool.h */
-typedef uint32_t u32;           /* ditto */
-typedef uint16_t u16;           /* ditto */
-typedef uint8_t u8;             /* ditto */
+typedef uint64_t u64; /* hack, so we may include kernel's ethtool.h */
+typedef uint32_t u32; /* ditto */
+typedef uint16_t u16; /* ditto */
+typedef uint8_t u8;   /* ditto */
 #include <linux/ethtool.h>
 
 
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to