The linux/signal.h header was moved to linux/sched/signal.h as
of linux version 4.11.0.
As such linux/sched/signal.h is not available on linux below 4.11.0.
Signed-off-by: James Hilliard <jam...@gm...>
---
ocf/crypto.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ocf/crypto.c b/ocf/crypto.c
index 4e50328..5691b2a 100644
--- a/ocf/crypto.c
+++ b/ocf/crypto.c
@@ -73,7 +73,11 @@ __FBSDID("$FreeBSD: src/sys/opencrypto/crypto.c,v 1.16 2005/01/07 02:29:16 imp E
#include <linux/slab.h>
#include <linux/wait.h>
#include <linux/sched.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)
+#include <linux/signal.h>
+#else
#include <linux/sched/signal.h>
+#endif
#include <linux/spinlock.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,4)
#include <linux/kthread.h>
--
2.37.3
|