diff options
author | Jan-Espen Oversand <sigsegv@radiotube.org> | 2022-11-28 20:26:31 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-12-09 08:54:00 +0200 |
commit | 90c904faf227c902da129eb569563cc6d669550a (patch) | |
tree | 1c71b54abbb4d5af677cf6677c8d9f7b1247d56b /net-vpn/vtun/files/vtun-3.0.4-includes.patch | |
parent | www-apps/radicale: drop old (diff) | |
download | gentoo-90c904faf227c902da129eb569563cc6d669550a.tar.gz gentoo-90c904faf227c902da129eb569563cc6d669550a.tar.bz2 gentoo-90c904faf227c902da129eb569563cc6d669550a.zip |
net-vpn/vtun: add 3.0.4
It is a little bit tricky to build properly, which is probably at
least partly because approx 5 years have gone by with no new
upstream releases.
Signed-off-by: Jan-Espen Oversand <sigsegv@radiotube.org>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-vpn/vtun/files/vtun-3.0.4-includes.patch')
-rw-r--r-- | net-vpn/vtun/files/vtun-3.0.4-includes.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-vpn/vtun/files/vtun-3.0.4-includes.patch b/net-vpn/vtun/files/vtun-3.0.4-includes.patch new file mode 100644 index 000000000000..d17e4acbc5c4 --- /dev/null +++ b/net-vpn/vtun/files/vtun-3.0.4-includes.patch @@ -0,0 +1,50 @@ +--- a/lfd_encrypt.c ++++ b/lfd_encrypt.c +@@ -44,6 +44,7 @@ + #include <strings.h> + #include <string.h> + #include <time.h> ++#include <arpa/inet.h> /* htonl() */ + + #include "vtun.h" + #include "linkfd.h" +--- a/lib.c ++++ b/lib.c +@@ -34,6 +34,7 @@ + #include <sys/wait.h> + #include <syslog.h> + #include <errno.h> ++#include <time.h> /* nanosleep() */ + + #include "vtun.h" + #include "linkfd.h" +--- a/lib.h ++++ b/lib.h +@@ -26,6 +26,7 @@ + #include <sys/types.h> + #include <signal.h> + #include <errno.h> ++#include <unistd.h> /* read(), write() */ + + #ifdef HAVE_LIBUTIL_H + #include <libutil.h> +--- a/lock.c ++++ b/lock.c +@@ -32,6 +32,7 @@ + #include <sys/types.h> + #include <signal.h> + #include <errno.h> ++#include <time.h> /* nanosleep() */ + + #include "vtun.h" + #include "linkfd.h" +--- a/lfd_shaper.c ++++ b/lfd_shaper.c +@@ -27,6 +27,7 @@ + #include <stdlib.h> + #include <sys/time.h> + #include <syslog.h> ++#include <time.h> /* nanosleep() */ + + #include "vtun.h" + #include "linkfd.h" |