From c7e464a7b2053baa2602d1f0f8d84c27299f5828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bremv=C3=A5g?= Date: Tue, 19 Mar 2019 01:14:48 +0100 Subject: [PATCH] Add support for kernel v5.1 --- 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 cb2cd34..6949fba 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -1992,6 +1992,10 @@ inline int ATOMIC_DEC_RETURN(ATOMIC_T *v) */ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)) + #define get_ds() (KERNEL_DS) +#endif + /* * Test if the specifi @param path is a file and readable * @param path the path of the file to test