summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Spencer <maillist-busybox@barfooze.de>2014-01-27 23:20:01 +0100
committerRichard Dale <richard.dale@codethink.co.uk>2015-06-19 16:28:49 +0000
commit4f3cd7769e5006319e5b3b7ceedf47e00f35fe4e (patch)
tree92f20c7482bf41fe5628b844e5529432bda8b709
parent91b0c141c6b1ef78d94e567296c968e0dac2d395 (diff)
downloadbusybox-baserock/1.23.2-openwrt.tar.gz
ifplugd: move linux header inclusion after userspace headersbaserock/1.23.2-openwrt
this allows linux' new libc-compat.h to kick in, which prevents redefinition of some structs that both userspace and kernel headers define. without this patch, struct ethhdr gets redefined and breaks the build against musl libc. Signed-Off-By: John Spencer <maillist-busybox@barfooze.de>
-rw-r--r--networking/ifplugd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/networking/ifplugd.c b/networking/ifplugd.c
index fef7a5ac9..796aa22da 100644
--- a/networking/ifplugd.c
+++ b/networking/ifplugd.c
@@ -34,16 +34,17 @@
#include "libbb.h"
#include "fix_u32.h"
-#include <linux/if.h>
-#include <linux/mii.h>
-#include <linux/ethtool.h>
#ifdef HAVE_NET_ETHERNET_H
# include <net/ethernet.h>
#endif
+#include <syslog.h>
+
+#include <linux/if.h>
+#include <linux/mii.h>
+#include <linux/ethtool.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/sockios.h>
-#include <syslog.h>
#define __user
#include <linux/wireless.h>