010-fix-compile.patch 869 B

12345678910111213141516171819202122
  1. --- a/src/drv_tapi_linux.c
  2. +++ b/src/drv_tapi_linux.c
  3. @@ -54,6 +54,10 @@
  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>
  10. +#endif
  11. #undef CONFIG_DEVFS_FS
  12. #ifndef UTS_RELEASE
  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");
  16. /** The driver callbacks which will be registered with the kernel*/
  17. -static struct file_operations tapi_fops = {0};
  18. +static struct file_operations tapi_fops;
  19. /* ============================= */
  20. /* Global function definition */