]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
lib: bridge: avoid redefinition of in6_addr
authorYureka <yureka@cyberchaos.dev>
Sun, 12 Oct 2025 12:39:47 +0000 (14:39 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 21 Oct 2025 22:05:57 +0000 (15:05 -0700)
On musl libc, which does not use the kernel definitions of in6_addr, including
the libc headers after the kernel (UAPI) headers would cause a redefinition
error. The opposite order avoids the redefinition.

Fixes: 9e89d5b94d749f37525cd8778311e1c9f28f172a
Signed-off-by: Yureka <yureka@cyberchaos.dev>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/bridge.c

index 5386aa0178d65f047dfe065623d1ec40fbc798a8..104f5858b0406a023e25ff1f3065b44862cb7501 100644 (file)
@@ -2,8 +2,8 @@
 
 #include <net/if.h>
 
-#include "bridge.h"
 #include "utils.h"
+#include "bridge.h"
 
 void bridge_print_vlan_flags(__u16 flags)
 {