diff --git a/net/vtun/PRE_BUILD b/net/vtun/PRE_BUILD
new file mode 100755
index 0000000..32c0555
--- /dev/null
+++ b/net/vtun/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git a/net/vtun/patches/508-gcc5-inline.patch
b/net/vtun/patches/508-gcc5-inline.patch
new file mode 100644
index 0000000..3207ab1
--- /dev/null
+++ b/net/vtun/patches/508-gcc5-inline.patch
@@ -0,0 +1,20 @@
+Description: fix gcc5 build failure:
+ The visibility of one of the functions in the yacc grammar is increased so
+ the program links without error now.
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/778164
+Author: "Potter, Tim (Cloud Services)" <timothy.potter AT hp.com>
+Reviewed-by: gregor herrmann <gregoa AT debian.org>
+Last-Update: 2015-07-23
+
+--- a/cfg_file.y
++++ b/cfg_file.y
+@@ -624,7 +624,7 @@
+ }
+
+ /* Clear the VTUN_NAT_HACK flag which are not relevant to the current
operation mode */
+-inline void clear_nat_hack_flags(int svr)
++extern inline void clear_nat_hack_flags(int svr)
+ {
+ if (svr)
+ llist_trav(&host_list,clear_nat_hack_server,NULL);
[SM-Commit] GIT changes to master grimoire by Ismael Luceno (b0b7d8f591ef921b3eb7599cc67c0911d8666da0),
Ismael Luceno, 09/11/2018