From df6381f35d0712f171045e6aff779585cdf5ce33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bremv=C3=A5g?= Date: Sat, 22 Jun 2019 19:41:09 +0200 Subject: [PATCH] Added kernel v5.1+ support (get_ds -> KERNEL_DS) --- os_dep/osdep_service.c | 4 ++++ 1 file changed, 4 insertions(+) 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) /*