]>
Commit | Line | Data |
---|---|---|
fd696aa5 JP |
1 | ------------------------------------------------------------------------ |
2 | r77542 | vboxsync | 2019-03-03 05:40:17 +0100 (nie, 03 mar 2019) | 1 line | |
3 | ||
4 | linux/vboxsf: MS_REMOUNT and friends moved to uapi/linux/mount.h in 5.0 (rc8), so we need to include it to use it. bugref:9172 | |
5 | ||
6 | Index: src/VBox/Additions/linux/sharedfolders/vfsmod.c | |
7 | =================================================================== | |
8 | --- src/VBox/Additions/linux/sharedfolders/vfsmod.c (revision 77541) | |
9 | +++ src/VBox/Additions/linux/sharedfolders/vfsmod.c (revision 77542) | |
10 | @@ -45,7 +45,9 @@ | |
11 | #include "revision-generated.h" | |
12 | #include "product-generated.h" | |
13 | #include "VBoxGuestR0LibInternal.h" | |
14 | -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) | |
15 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) | |
16 | +# include <uapi/linux/mount.h> /* for MS_REMOUNT */ | |
17 | +#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) | |
18 | # include <linux/mount.h> | |
19 | #endif | |
20 | #include <linux/seq_file.h> | |
21 | ||
22 | ------------------------------------------------------------------------ |