packages/ipv6/aiccu/patches/400-musl-compat.patch
Jo-Philipp Wich e39e96d089 aiccu: fix musl compatibility
- Fix redefinition of struct ethhdr
- Restrict the use of res_ninit() and res_nquery() to glibc
- Fix a warning in dn_skipname.c by declaring ns_name_skip() static
- Refresh patches

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-16 16:35:47 +02:00

29 lines
638 B
Diff

--- a/common/common.h
+++ b/common/common.h
@@ -50,6 +50,7 @@
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/uio.h>
#include <fcntl.h>
#if defined(_SUNOS) || defined(_AIX) || defined(_DARWIN)
@@ -91,7 +92,9 @@
#include <sys/select.h>
#include <net/if.h>
+#if defined(__GLIBC__) || defined(__UCLIBC__)
#include <netinet/if_ether.h>
+#endif
#ifdef linux
#include <netpacket/packet.h>
#include <linux/if_tun.h>
--- a/common/dn_skipname.c
+++ b/common/dn_skipname.c
@@ -1,5 +1,6 @@
#include <errno.h>
#include <resolv.h>
+#include <sys/types.h>
/* Ripped from glibc 2.4 sources. */