summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOlaf Faaland <[email protected]>2017-03-07 15:33:50 -0800
committerBrian Behlendorf <[email protected]>2017-03-20 17:43:43 -0700
commit9a054d54fb6772305fdbe0bb5b312cf051331726 (patch)
tree91615d10ffa19e86731f5f433a7efd6a0d2dad14 /include
parent94b1ab2ae01e9ee642aee87dd1a73e8d63629372 (diff)
Linux 4.11 compat: add linux/sched/signal.h
In Linux 4.11, torvalds/linux@2a1f062, signal handling related functions were moved from sched.h into sched/signal.h. Add configure checks to detect this and include the new file where needed. Reviewed-by: Chunwei Chen <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Olaf Faaland <[email protected]> Closes #608
Diffstat (limited to 'include')
-rw-r--r--include/sys/signal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/signal.h b/include/sys/signal.h
index 823fea329..77cc2d3c2 100644
--- a/include/sys/signal.h
+++ b/include/sys/signal.h
@@ -27,6 +27,10 @@
#include <linux/sched.h>
+#ifdef HAVE_SCHED_SIGNAL_HEADER
+#include <linux/sched/signal.h>
+#endif
+
#define FORREAL 0 /* Usual side-effects */
#define JUSTLOOKING 1 /* Don't stop the process */