@@ -21,11 +21,16 @@ import ./make-test.nix ({ pkgs, ... }: {
2121 # the boot process kills any kthread by accident, like what happened in
2222 # issue #15226.
2323 kcanary = compileKernelModule "kcanary" ''
24+ #include <linux/version.h>
2425 #include <linux/init.h>
2526 #include <linux/module.h>
2627 #include <linux/kernel.h>
2728 #include <linux/kthread.h>
2829 #include <linux/sched.h>
30+ #include <linux/signal.h>
31+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
32+ #include <linux/sched/signal.h>
33+ #endif
2934
3035 struct task_struct *canaryTask;
3136