projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee34ebe
)
ifenslave: on uclibc at least, net/if.h + linux/if_bonding.h dont coexist
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 6 Sep 2008 14:52:28 +0000
(14:52 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 6 Sep 2008 14:52:28 +0000
(14:52 -0000)
networking/ifenslave.c
patch
|
blob
|
history
diff --git
a/networking/ifenslave.c
b/networking/ifenslave.c
index 89a3f9e80dc6baec48e8dbf24f17f8c47cbf796b..ae97457264d81dd6446386d2b37fc46512439953 100644
(file)
--- a/
networking/ifenslave.c
+++ b/
networking/ifenslave.c
@@
-100,11
+100,15
@@
#include "libbb.h"
-#include <net/if.h>
+/* #include <net/if.h> - no. linux/if_bonding.h pulls in linux/if.h */
#include <net/if_arp.h>
#include <linux/if_bonding.h>
#include <linux/sockios.h>
+#ifndef IFNAMSIZ
+#define IFNAMSIZ 16
+#endif
+
typedef uint64_t u64; /* hack, so we may include kernel's ethtool.h */
typedef uint32_t u32; /* ditto */
typedef uint16_t u16; /* ditto */