1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/vpnc/musl-libc.patch
J0WI 96509889cf testing/vpnc: modernize
* build with TLS support
* use patched fork, previous source was defunct and unmaintained
	* See: https://github.com/alpinelinux/aports/pull/11961
2019-10-25 16:06:31 +02:00

42 lines
1.1 KiB
Diff

--- a/src/config.c
+++ b/src/config.c
@@ -29,6 +29,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
+#include <sys/ttydefaults.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <sys/wait.h>
--- a/src/sysdep.h
+++ b/src/sysdep.h
@@ -37,12 +37,14 @@
int tun_get_hwaddr(int fd, char *dev, uint8_t *hwaddr);
/***************************************************************************/
-#if defined(__linux__) || defined(__GLIBC__)
+#if defined(__GLIBC__) || defined(__UCLIBC__)
#include <error.h>
+#define HAVE_ERROR 1
+#endif
+#if defined(__linux__) || defined(__GLIBC__)
#define HAVE_VASPRINTF 1
#define HAVE_ASPRINTF 1
-#define HAVE_ERROR 1
#define HAVE_UNSETENV 1
#define HAVE_SETENV 1
#endif
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -59,6 +59,10 @@
#if defined(__DragonFly__)
#include <net/tun/if_tun.h>
#elif defined(__linux__)
+# 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 */