From a0322cf22da75e58b3e6762c840c934daa33a47d Mon Sep 17 00:00:00 2001 From: Tony Finn Date: Wed, 24 May 2017 20:34:19 +0100 Subject: [PATCH] Fix for kernel 4.11+ Signal related functions (flush_signal, allow_signal and signal_pending) moved from include/linux/sched.h to include/linux/sched/signal.h in 4.11.0: http://elixir.free-electrons.com/linux/v4.10.17/source/include/linux/sched/signal.h As a result, this module did not build in 4.11 on my Arch system. This updates the includes to allow this module to build on 4.11. --- include/osdep_service_linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h index 2077e42..73c6c59 100644 --- a/include/osdep_service_linux.h +++ b/include/osdep_service_linux.h @@ -46,6 +46,9 @@ #endif #include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) + #include +#endif #include #include #include