I've had this patch sitting around a couple of weeks.  Got around to
cleaning it up a bit and submitting it.

The attached patch allows me to build the ifenslave applet in
MontaVista CGE31 (xscale_be target) using gcc-3.3.1.  I've also tested
the modified applet quite a bit.

Let me know if you have any suggestions.

Matt
diff -x CVS -ruN busybox-1.15.1/networking/ifenslave.c busybox-working/networking/ifenslave.c
--- busybox-1.15.1/networking/ifenslave.c	2009-09-12 10:55:36.000000000 -0500
+++ busybox-working/networking/ifenslave.c	2009-09-22 17:57:08.000000000 -0500
@@ -101,8 +101,20 @@
 #include "libbb.h"
 
 /* #include <net/if.h> - no. linux/if_bonding.h pulls in linux/if.h */
+#ifndef CONFIG_FEATURE_2_4_MODULES
 #include <net/if_arp.h>
 #include <linux/if_bonding.h>
+#else
+//hack so 2.4 kernel bonding will work with ifenslave
+//	-Matt Stoltenberg <d3m...@hotmail.com>
+#include <linux/if.h>
+#include <net/if_arp.h>
+#include <linux/if_bonding.h>
+#ifndef BOND_ABI_VERSION
+# define BOND_ABI_VERSION 2
+#endif
+#endif  //CONFIG_FEATURE_2_4_MODULES
+
 #include <linux/sockios.h>
 
 #include "fix_u32.h" /* hack, so we may include kernel's ethtool.h */
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to