# HG changeset patch
# User Florian Pose <fp@igh.de>
# Date 1512551390 -3600
# Node ID cb240525acb6240269aa84d09e8bd1b55bc3d9f3
# Parent  9149adda56ed7bc600a263f9a7639918eeb6d117
Support scheduler parameters in kernels >= 4.11.

diff -r 9149adda56ed -r cb240525acb6 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"