forked from pool/virtualbox
8598e91bab
- Add smap.diff (boo#931461) OBS-URL: https://build.opensuse.org/request/show/308029 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=193
18 lines
598 B
Diff
18 lines
598 B
Diff
Index: VirtualBox-4.3.28/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
|
|
===================================================================
|
|
--- VirtualBox-4.3.28.orig/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
|
|
+++ VirtualBox-4.3.28/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
|
|
@@ -48,6 +48,12 @@
|
|
# include <iprt/power.h>
|
|
# define VBOX_WITH_SUSPEND_NOTIFICATION
|
|
#endif
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
|
|
+# include <asm/smap.h>
|
|
+#else
|
|
+static inline void clac(void) { }
|
|
+static inline void stac(void) { }
|
|
+#endif
|
|
|
|
#include <linux/sched.h>
|
|
#ifdef CONFIG_DEVFS_FS
|