diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index 83c7640..c67a3b7 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -27,6 +27,10 @@ atomic_t _malloc_size = ATOMIC_INIT(0); #endif #endif /* DBG_MEMORY_LEAK */ +/* This is to fix get_ds() type mismatch on kernels above 5.1.x */ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)) + #define get_ds() KERNEL_DS +#endif #if defined(PLATFORM_LINUX) /*