From 6e883328e8419e65f8bf2d521cb42ec48f746ab3 Mon Sep 17 00:00:00 2001 From: Daniel Gimpelevich Date: Wed, 11 Nov 2015 13:29:43 -0800 Subject: [PATCH] vpnc: dirty hack for musl compatibility Signed-off-by: Daniel Gimpelevich --- net/vpnc/Makefile | 2 +- net/vpnc/patches/100-musl-compat.patch | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/net/vpnc/Makefile b/net/vpnc/Makefile index 052da0c3b5..c6bcdf38cd 100644 --- a/net/vpnc/Makefile +++ b/net/vpnc/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vpnc PKG_REV:=550 PKG_VERSION:=0.5.3.r$(PKG_REV) -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://svn.unix-ag.uni-kl.de/vpnc/trunk/ diff --git a/net/vpnc/patches/100-musl-compat.patch b/net/vpnc/patches/100-musl-compat.patch index 1186428af3..0a46770e48 100644 --- a/net/vpnc/patches/100-musl-compat.patch +++ b/net/vpnc/patches/100-musl-compat.patch @@ -19,17 +19,17 @@ #endif --- a/sysdep.c +++ b/sysdep.c -@@ -59,7 +59,9 @@ +@@ -59,6 +59,10 @@ #if defined(__DragonFly__) #include #elif defined(__linux__) --#include -+# if defined(__GLIBC__) || defined(__UCLIBC__) -+# include ++# if !defined(__GLIBC__) && !defined(__UCLIBC__) ++# define _LINUX_IF_ETHER_H ++# include +# endif + #include #elif defined(__APPLE__) /* no header for tun */ - #elif defined(__CYGWIN__) --- a/config.c +++ b/config.c @@ -28,6 +28,7 @@ -- 2.30.2