sched.h got refactored.

Signed-off-by: Jan Kiszka <[email protected]>
---
 driver/main.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/driver/main.c b/driver/main.c
index 60524eb..5f536a2 100644
--- a/driver/main.c
+++ b/driver/main.c
@@ -12,6 +12,9 @@
  * the COPYING file in the top-level directory.
  */
 
+/* For compatibility with older kernel versions */
+#include <linux/version.h>
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/device.h>
@@ -19,6 +22,9 @@
 #include <linux/miscdevice.h>
 #include <linux/firmware.h>
 #include <linux/mm.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
+#include <linux/sched/signal.h>
+#endif
 #include <linux/slab.h>
 #include <linux/smp.h>
 #include <linux/uaccess.h>
@@ -51,9 +57,6 @@
 # warning JAILHOUSE_CELL_ID_NAMELEN and JAILHOUSE_CELL_NAME_MAXLEN out of sync!
 #endif
 
-/* For compatibility with older kernel versions */
-#include <linux/version.h>
-
 #ifdef CONFIG_X86
 #define JAILHOUSE_AMD_FW_NAME  "jailhouse-amd.bin"
 #define JAILHOUSE_INTEL_FW_NAME        "jailhouse-intel.bin"
-- 
2.10.2

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to