]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: include libc headers first
authorBaruch Siach <baruch@tkos.co.il>
Mon, 22 May 2017 13:27:53 +0000 (16:27 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 31 May 2017 00:27:58 +0000 (17:27 -0700)
Including libc headers first helps as a workaround to redefinition of struct
ethhdr with a suitably patched musl libc that suppresses the kernel
if_ether.h.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
ip/iplink_bridge.c

index 818b43c89b5b96d284537deede7566c8b828c73a..cccdec1c203a960c67b37294f1b8cd1b870d188a 100644 (file)
@@ -13,9 +13,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <netinet/in.h>
+#include <netinet/ether.h>
 #include <linux/if_link.h>
 #include <linux/if_bridge.h>
-#include <netinet/ether.h>
 #include <net/if.h>
 
 #include "rt_names.h"