From ba0bed463659953579d6ac5d8a98de3fdf1a489f Mon Sep 17 00:00:00 2001 From: Christian kimocoder Date: Fri, 25 Aug 2017 12:42:39 +0200 Subject: [PATCH] fix import on linux kernel >= 4.11.0 The sched library now has a new location on linux kernel >= 4.11.0. This commit allows builds to occur on both pre and post 4.11.0 linux kernels. --- include/osdep_service_linux.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/osdep_service_linux.h b/include/osdep_service_linux.h index f81b731..78219e5 100644 --- a/include/osdep_service_linux.h +++ b/include/osdep_service_linux.h @@ -45,7 +45,14 @@ #include #endif #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) + #define HAVE_SIGNAL_FUNCTIONS_OWN_HEADER +#endif +#ifdef HAVE_SIGNAL_FUNCTIONS_OWN_HEADER + #include +#else #include +#endif #include #include #include