diff options
Diffstat (limited to 'package/vpnc/patches')
-rw-r--r-- | package/vpnc/patches/patch-sysdep_c | 17 | ||||
-rw-r--r-- | package/vpnc/patches/patch-sysdep_h | 11 |
2 files changed, 28 insertions, 0 deletions
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 |