Browse Source

vpnc: dirty hack for musl compatibility

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
lilik-openwrt-22.03
Daniel Gimpelevich 9 years ago
parent
commit
6e883328e8
2 changed files with 6 additions and 6 deletions
  1. +1
    -1
      net/vpnc/Makefile
  2. +5
    -5
      net/vpnc/patches/100-musl-compat.patch

+ 1
- 1
net/vpnc/Makefile View 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/


+ 5
- 5
net/vpnc/patches/100-musl-compat.patch View File

@ -19,17 +19,17 @@
#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 @@


Loading…
Cancel
Save