external/kernel-drivers
修订版 | 4fc5b1ac66f7882021c20907b2f64cf29a3b5276 (tree) |
---|---|
时间 | 2019-01-24 16:21:37 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Fix building errors with kernel < 4.11
@@ -20,9 +20,6 @@ | ||
20 | 20 | #ifndef __OSDEP_SERVICE_H_ |
21 | 21 | #define __OSDEP_SERVICE_H_ |
22 | 22 | |
23 | -#include <linux/signal.h> | |
24 | -#include <linux/sched/signal.h> | |
25 | - | |
26 | 23 | #define _FAIL 0 |
27 | 24 | #define _SUCCESS 1 |
28 | 25 | #define RTW_RX_HANDLED 2 |
@@ -34,9 +31,6 @@ | ||
34 | 31 | #undef _FALSE |
35 | 32 | #define _FALSE 0 |
36 | 33 | |
37 | -#include <linux/signal.h> | |
38 | -#include <linux/sched/signal.h> | |
39 | - | |
40 | 34 | #ifdef PLATFORM_FREEBSD |
41 | 35 | #include <osdep_service_bsd.h> |
42 | 36 | #endif |
@@ -57,6 +57,9 @@ | ||
57 | 57 | #include <linux/kthread.h> |
58 | 58 | #include <linux/list.h> |
59 | 59 | #include <linux/vmalloc.h> |
60 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) | |
61 | + #include <linux/sched/signal.h> | |
62 | +#endif | |
60 | 63 | |
61 | 64 | #if (LINUX_VERSION_CODE <= KERNEL_VERSION(2,5,41)) |
62 | 65 | #include <linux/tqueue.h> |