ifenslave: fix for 2.4 kernels compile
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 23 Sep 2009 21:47:52 +0000 (23:47 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 23 Sep 2009 21:47:52 +0000 (23:47 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifenslave.c

index 218000708f6016a584b7db1461f3d3b35130407b..28f0c0b6b7ec4fcae08273b5fa52b10424603d18 100644 (file)
 #include "libbb.h"
 
 /* #include <net/if.h> - no. linux/if_bonding.h pulls in linux/if.h */
+#include <linux/if.h>
 #include <net/if_arp.h>
 #include <linux/if_bonding.h>
 #include <linux/sockios.h>
-
 #include "fix_u32.h" /* hack, so we may include kernel's ethtool.h */
 #include <linux/ethtool.h>
-
+#ifndef BOND_ABI_VERSION
+# define BOND_ABI_VERSION 2
+#endif
 #ifndef IFNAMSIZ
 # define IFNAMSIZ 16
 #endif