forked from pool/virtualbox
5e9a79fab9
- Patch build to work with the Leap 15.4 kernel. File "fixes_for_leap15.4.patch" as added. OBS-URL: https://build.opensuse.org/request/show/913869 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=614
16 lines
922 B
Diff
16 lines
922 B
Diff
Index: VirtualBox-6.1.26/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
|
|
===================================================================
|
|
--- VirtualBox-6.1.26.orig/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
|
|
+++ VirtualBox-6.1.26/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h
|
|
@@ -137,9 +137,7 @@
|
|
#include <linux/interrupt.h>
|
|
#include <linux/completion.h>
|
|
#include <linux/compiler.h>
|
|
-#if RTLNX_VER_MIN(5,9,0) || RTLNX_SUSE_MAJ_PREREQ(15,3) /* linux/fs.h defined HAVE_UNLOCKED_IOCTL from 2.6.11 up to 5.9 (also 5.3.18-56 in SLES15-SP3), when it became an implicit assumption. */
|
|
-# define HAVE_UNLOCKED_IOCTL 1 /* We use this in a couple of places, so for now just define it for 5.9+ too. */
|
|
-#endif
|
|
+#define HAVE_UNLOCKED_IOCTL 1 /* We use this in a couple of places, so for now just define it for 5.9+ too. */
|
|
#if !defined(HAVE_UNLOCKED_IOCTL) && RTLNX_VER_MAX(2,6,38)
|
|
# include <linux/smp_lock.h>
|
|
#endif
|