vpnc: dirty hack for musl compatibility 1947/head
authorDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Wed, 11 Nov 2015 21:29:43 +0000 (13:29 -0800)
committerDaniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Wed, 11 Nov 2015 21:29:43 +0000 (13:29 -0800)
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
net/vpnc/Makefile
net/vpnc/patches/100-musl-compat.patch

index 052da0c3b53be9bb1d009a4cca699f1a658e6df9..c6bcdf38cde63bec78e7450d771ff3e3503ddaf0 100644 (file)
@@ -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/
index 1186428af3b4dfc2807252092303d97d9fc79391..0a46770e484e3fa06b59c7b7129b45dea47f0a84 100644 (file)
  #endif
 --- a/sysdep.c
 +++ b/sysdep.c
-@@ -59,7 +59,9 @@
+@@ -59,6 +59,10 @@
  #if defined(__DragonFly__)
  #include <net/tun/if_tun.h>
  #elif defined(__linux__)
--#include <linux/if_tun.h>
-+# if defined(__GLIBC__) || defined(__UCLIBC__)
-+#  include <linux/if_tun.h>
++# if !defined(__GLIBC__) && !defined(__UCLIBC__)
++#  define _LINUX_IF_ETHER_H
++#  include <net/ethernet.h>
 +# endif
+ #include <linux/if_tun.h>
  #elif defined(__APPLE__)
  /* no header for tun */
- #elif defined(__CYGWIN__)
 --- a/config.c
 +++ b/config.c
 @@ -28,6 +28,7 @@