From bc4d049918ec7507e08bfa473cbc27383b581ebf Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 29 Jun 2015 18:00:44 +0200 Subject: [PATCH] libnet-1.2.x: fix uClibc regression caused by #1410 Signed-off-by: Jo-Philipp Wich --- libs/libnet-1.2.x/Makefile | 2 +- libs/libnet-1.2.x/patches/100-musl-compat.patch | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libs/libnet-1.2.x/Makefile b/libs/libnet-1.2.x/Makefile index a9d7e75082..a791163373 100644 --- a/libs/libnet-1.2.x/Makefile +++ b/libs/libnet-1.2.x/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libnet PKG_VERSION:=1.2-rc3 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://sourceforge.net/projects/libnet-dev/files/ diff --git a/libs/libnet-1.2.x/patches/100-musl-compat.patch b/libs/libnet-1.2.x/patches/100-musl-compat.patch index fcb4188a01..b95366a07c 100644 --- a/libs/libnet-1.2.x/patches/100-musl-compat.patch +++ b/libs/libnet-1.2.x/patches/100-musl-compat.patch @@ -1,11 +1,16 @@ --- a/src/libnet_link_linux.c +++ b/src/libnet_link_linux.c -@@ -30,7 +30,7 @@ +@@ -30,13 +30,8 @@ #include #include -#if (__GLIBC__) -+#if (!__UCLIBC__) #include #include - #else +-#else +-#include +-#include +-#endif + + #if (HAVE_PACKET_SOCKET) + #ifndef SOL_PACKET