Support scheduler parameters in kernels >= 4.11. stable-1.5
authorFlorian Pose <fp@igh.de>
Wed, 06 Dec 2017 10:09:50 +0100
branchstable-1.5
changeset 2692 cb240525acb6
parent 2691 9149adda56ed
child 2693 8051d05cb935
Support scheduler parameters in kernels >= 4.11.
master/master.c
--- a/master/master.c	Fri Oct 27 12:33:30 2017 +0200
+++ b/master/master.c	Wed Dec 06 10:09:50 2017 +0100
@@ -44,6 +44,11 @@
 #include <linux/device.h>
 #include <linux/version.h>
 #include <linux/hrtimer.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+#include <linux/sched/types.h> // struct sched_param
+#endif
+
 #include "globals.h"
 #include "slave.h"
 #include "slave_config.h"