diff options
author | Shiz <hi@shiz.me> | 2017-05-20 22:25:28 +0200 |
---|---|---|
committer | Shiz <hi@shiz.me> | 2017-05-20 22:25:28 +0200 |
commit | 2437d87efb4f54b3d3a162e619a36a43f647723b (patch) | |
tree | 52e4cf3213689673d3c208055fbf4dcf50aa6183 /testing/vpnc/working.patch | |
parent | f57e5a3db221a55b0526b3b546af47d5c57fe5b4 (diff) | |
download | aports-2437d87efb4f54b3d3a162e619a36a43f647723b.tar.bz2 aports-2437d87efb4f54b3d3a162e619a36a43f647723b.tar.xz |
testing/vpnc: move from unmaintained and modernize
Diffstat (limited to 'testing/vpnc/working.patch')
-rw-r--r-- | testing/vpnc/working.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/vpnc/working.patch b/testing/vpnc/working.patch new file mode 100644 index 0000000000..2a6e1a19a2 --- /dev/null +++ b/testing/vpnc/working.patch @@ -0,0 +1,32 @@ +diff --git a/sysdep.c b/sysdep.c +index ff07753..43fdb74 100644 +--- a/sysdep.c ++++ b/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 a/sysdep.h b/sysdep.h +index a5eafd6..af34e94 100644 +--- a/sysdep.h ++++ b/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 |