vpnc: add alpine patch to fix musl.
This commit is contained in:
parent
6d97e90bd3
commit
1779dabd7d
|
@ -0,0 +1,32 @@
|
||||||
|
diff --git sysdep.c sysdep.c
|
||||||
|
index ff07753..43fdb74 100644
|
||||||
|
--- sysdep.c
|
||||||
|
+++ sysdep.c
|
||||||
|
@@ -59,7 +59,7 @@
|
||||||
|
#if defined(__DragonFly__)
|
||||||
|
#include <net/tun/if_tun.h>
|
||||||
|
#elif defined(__linux__)
|
||||||
|
-#include <linux/if_tun.h>
|
||||||
|
+/*#include <linux/if_tun.h>*/
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
/* no header for tun */
|
||||||
|
#elif defined(__CYGWIN__)
|
||||||
|
diff --git sysdep.h sysdep.h
|
||||||
|
index a5eafd6..af34e94 100644
|
||||||
|
--- sysdep.h
|
||||||
|
+++ sysdep.h
|
||||||
|
@@ -38,11 +38,13 @@ int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr);
|
||||||
|
|
||||||
|
/***************************************************************************/
|
||||||
|
#if defined(__linux__) || defined(__GLIBC__)
|
||||||
|
+#ifdef __GLIBC__
|
||||||
|
#include <error.h>
|
||||||
|
+#define HAVE_ERROR 1
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
#define HAVE_VASPRINTF 1
|
||||||
|
#define HAVE_ASPRINTF 1
|
||||||
|
-#define HAVE_ERROR 1
|
||||||
|
#define HAVE_GETLINE 1
|
||||||
|
#define HAVE_UNSETENV 1
|
||||||
|
#define HAVE_SETENV 1
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'vpnc'
|
# Template file for 'vpnc'
|
||||||
pkgname=vpnc
|
pkgname=vpnc
|
||||||
version=0.5.3
|
version=0.5.3
|
||||||
revision=3
|
revision=4
|
||||||
hostmakedepends="perl"
|
hostmakedepends="perl"
|
||||||
makedepends="libgcrypt-devel"
|
makedepends="libgcrypt-devel"
|
||||||
depends="net-tools"
|
depends="net-tools"
|
||||||
|
|
Loading…
Reference in New Issue