From e4925c1efdd4b8caf8f19c8c3b2aba544459863b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 17 Jun 2015 23:31:40 +0200 Subject: libnet-1.2.x: fix musl compatiblity 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 --- libs/libnet-1.2.x/patches/100-musl-compat.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libs/libnet-1.2.x/patches/100-musl-compat.patch (limited to 'libs/libnet-1.2.x/patches') diff --git a/libs/libnet-1.2.x/patches/100-musl-compat.patch b/libs/libnet-1.2.x/patches/100-musl-compat.patch new file mode 100644 index 000000000..fcb4188a0 --- /dev/null +++ b/libs/libnet-1.2.x/patches/100-musl-compat.patch @@ -0,0 +1,11 @@ +--- a/src/libnet_link_linux.c ++++ b/src/libnet_link_linux.c +@@ -30,7 +30,7 @@ + #include + + #include +-#if (__GLIBC__) ++#if (!__UCLIBC__) + #include + #include + #else -- cgit v1.2.3