From b4e3a83915a6bde49bffcf3364c6a2317854e348 Mon Sep 17 00:00:00 2001 From: Sergey Ivanov Date: Mon, 9 Dec 2019 14:53:39 -0500 Subject: compat: support building for RHEL-8.1 instead of RHEL-8.0 RedHat backported to their kernel 4.18.0-147.el8 a couple features. This patch enables compiling for this kernel. Signed-off-by: Sergey Ivanov --- src/compat/compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/compat/compat.h b/src/compat/compat.h index b4a8f8b..3cc3c7f 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -326,7 +326,7 @@ static inline int wait_for_random_bytes(void) } #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) && !defined(ISRHEL8) #include #include struct rng_is_initialized_callback { @@ -831,7 +831,7 @@ static inline void skb_mark_not_on_list(struct sk_buff *skb) } #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0) && !defined(ISRHEL8) #define NLA_EXACT_LEN NLA_UNSPEC #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) -- cgit v1.2.3-59-g8ed1b