summaryrefslogtreecommitdiffstats
path: root/debian/patches/77542.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:54 +0000
commit0494175483c2d82f445ddca9cadb6ee6338e9f9c (patch)
tree336364dc245983722e34439ece449564e77ca286 /debian/patches/77542.patch
parentAdding upstream version 6.0.4-dfsg. (diff)
downloadvirtualbox-0494175483c2d82f445ddca9cadb6ee6338e9f9c.tar.xz
virtualbox-0494175483c2d82f445ddca9cadb6ee6338e9f9c.zip
Adding debian version 6.0.4-dfsg-7.debian/6.0.4-dfsg-7debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/77542.patch')
-rw-r--r--debian/patches/77542.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/77542.patch b/debian/patches/77542.patch
new file mode 100644
index 00000000..7f97cd7d
--- /dev/null
+++ b/debian/patches/77542.patch
@@ -0,0 +1,17 @@
+Description: fix build with kernel 5.0
+Origin: upstream
+Index: virtualbox/src/VBox/Additions/linux/sharedfolders/vfsmod.c
+===================================================================
+--- virtualbox.orig/src/VBox/Additions/linux/sharedfolders/vfsmod.c
++++ virtualbox/src/VBox/Additions/linux/sharedfolders/vfsmod.c
+@@ -40,7 +40,9 @@
+ #include "revision-generated.h"
+ #include "product-generated.h"
+ #include "VBoxGuestR0LibInternal.h"
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
++# include <uapi/linux/mount.h> /* for MS_REMOUNT */
++#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
+ # include <linux/mount.h>
+ #endif
+ #include <linux/seq_file.h>