diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-12-23 14:16:21 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-12-23 14:16:21 +0100 |
commit | 4c650985bd7724fd500dc08290880b4a31d62115 (patch) | |
tree | 3e3a4703e1f18ff32027fc7a265d9be66073cd41 /package/vpnc | |
parent | 6935d64dc30f2b0a2651137128fe28a63d574fb2 (diff) |
fix musl compile
Diffstat (limited to 'package/vpnc')
-rw-r--r-- | package/vpnc/Makefile | 3 | ||||
-rw-r--r-- | package/vpnc/patches/patch-sysdep_c | 17 | ||||
-rw-r--r-- | package/vpnc/patches/patch-sysdep_h | 11 |
3 files changed, 30 insertions, 1 deletions
diff --git a/package/vpnc/Makefile b/package/vpnc/Makefile index 10054738b..a172fa7d2 100644 --- a/package/vpnc/Makefile +++ b/package/vpnc/Makefile @@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk PKG_NAME:= vpnc PKG_VERSION:= 0.5.3 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_MD5SUM:= 4378f9551d5b077e1770bbe09995afb3 PKG_DESCR:= client for cisco3000 VPN Concentrator. PKG_SECTION:= net/security @@ -19,6 +19,7 @@ include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,VPNC,vpnc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) CONFIG_STYLE:= manual +TARGET_CPPFLAGS+= -D_GNU_SOURCE XAKE_FLAGS+= CC="${TARGET_CC}" \ OFLAGS="${TARGET_CFLAGS}" \ OS="Linux" \ diff --git a/package/vpnc/patches/patch-sysdep_c b/package/vpnc/patches/patch-sysdep_c new file mode 100644 index 000000000..abd723471 --- /dev/null +++ b/package/vpnc/patches/patch-sysdep_c @@ -0,0 +1,17 @@ +--- vpnc-0.5.3.orig/sysdep.c 2008-11-19 21:36:12.000000000 +0100 ++++ vpnc-0.5.3/sysdep.c 2013-12-23 14:15:07.000000000 +0100 +@@ -58,14 +58,10 @@ + + #if defined(__DragonFly__) + #include <net/tun/if_tun.h> +-#elif defined(__linux__) +-#include <linux/if_tun.h> + #elif defined(__APPLE__) + /* no header for tun */ + #elif defined(__CYGWIN__) + #include "tap-win32.h" +-#else +-#include <net/if_tun.h> + #endif + + #include "sysdep.h" diff --git a/package/vpnc/patches/patch-sysdep_h b/package/vpnc/patches/patch-sysdep_h new file mode 100644 index 000000000..854a14034 --- /dev/null +++ b/package/vpnc/patches/patch-sysdep_h @@ -0,0 +1,11 @@ +--- vpnc-0.5.3.orig/sysdep.h 2008-11-19 21:36:12.000000000 +0100 ++++ vpnc-0.5.3/sysdep.h 2013-12-23 14:13:51.000000000 +0100 +@@ -37,7 +37,7 @@ int tun_read(int fd, unsigned char *buf, + int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr); + + /***************************************************************************/ +-#if defined(__linux__) || defined(__GLIBC__) ++#if defined(__GLIBC__) + #include <error.h> + + #define HAVE_VASPRINTF 1 |