packages/libs/libnet-1.2.x/patches/100-musl-compat.patch
Jo-Philipp Wich bc4d049918 libnet-1.2.x: fix uClibc regression caused by #1410
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-29 18:00:44 +02:00

16 lines
317 B
Diff

--- a/src/libnet_link_linux.c
+++ b/src/libnet_link_linux.c
@@ -30,13 +30,8 @@
#include <sys/time.h>
#include <net/if.h>
-#if (__GLIBC__)
#include <netinet/if_ether.h>
#include <net/if_arp.h>
-#else
-#include <linux/if_arp.h>
-#include <linux/if_ether.h>
-#endif
#if (HAVE_PACKET_SOCKET)
#ifndef SOL_PACKET