| 2 | | |
| 3 | | |
| 4 | | Description: Fix kernel 5.8 forbidding use of vermagic.h header file |
| 5 | | Author: Gianfranco Costamagna <locutusofborg@debian.org> |
| 6 | | Origin: https://www.virtualbox.org/ticket/19644 |
| 7 | | Bug-Ubuntu: https://launchpad.net/bugs/1884652 |
| 8 | | Last-Update: 2020-08-10 |
| 9 | | |
| 10 | | --- virtualbox-6.1.12-dfsg.orig/src/VBox/Additions/linux/sharedfolders/vfsmod.c |
| 11 | | +++ virtualbox-6.1.12-dfsg/src/VBox/Additions/linux/sharedfolders/vfsmod.c |
| 12 | | @@ -53,7 +53,9 @@ |
| 13 | | #include <linux/seq_file.h> |
| 14 | | #include <linux/vfs.h> |
| 15 | | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 62) |
| 16 | | -# include <linux/vermagic.h> |
| 17 | | +# if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0) |
| 18 | | +# include <linux/vermagic.h> |
| 19 | | +# endif |
| 20 | | #endif |
| 21 | | #include <VBox/err.h> |
| 22 | | #include <iprt/path.h> |