1 --- a/src/drv_tapi_linux.c
2 +++ b/src/drv_tapi_linux.c
4 #include <linux/workqueue.h> /* LINUX 2.6 We need work_struct */
5 #include <linux/device.h>
6 #include <linux/sched.h>
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
8 + #include <linux/sched/signal.h>
9 + #include <linux/sched/types.h>
11 #undef CONFIG_DEVFS_FS
13 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33))
14 @@ -184,7 +188,7 @@ MODULE_PARM_DESC(block_egress_tasklet, "
15 MODULE_PARM_DESC(block_ingress_tasklet, "block the execution of the ingress tasklet, i.e. force to use the RT kernel thread");
17 /** The driver callbacks which will be registered with the kernel*/
18 -static struct file_operations tapi_fops = {0};
19 +static struct file_operations tapi_fops;
21 /* ============================= */
22 /* Global function definition */