From b254f07f92ea3cfa22d9a3a10968c15f0a3a7485 Mon Sep 17 00:00:00 2001 From: John Spencer Date: Mon, 27 Jan 2014 23:20:01 +0100 Subject: [PATCH] ifplugd: move linux header inclusion after userspace headers 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 --- networking/ifplugd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/networking/ifplugd.c b/networking/ifplugd.c index b578f4c..8fad69a 100644 --- a/networking/ifplugd.c +++ b/networking/ifplugd.c @@ -34,16 +34,17 @@ #include "libbb.h" #include "fix_u32.h" -#include -#include -#include #ifdef HAVE_NET_ETHERNET_H # include #endif +#include + +#include +#include +#include #include #include #include -#include #define __user #include -- 1.8.4