The correct includes for musl are protected by an __GLIBC__ check in the upstream sources. Since musl does not provide own defines to identify itself, simply invert the condition to !__UCLIBC__ in order to fix the build on all libc flavors supported by OpenWrt. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
11 lines
223 B
Diff
11 lines
223 B
Diff
--- a/src/libnet_link_linux.c
|
|
+++ b/src/libnet_link_linux.c
|
|
@@ -30,7 +30,7 @@
|
|
#include <sys/time.h>
|
|
|
|
#include <net/if.h>
|
|
-#if (__GLIBC__)
|
|
+#if (!__UCLIBC__)
|
|
#include <netinet/if_ether.h>
|
|
#include <net/if_arp.h>
|
|
#else
|