aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorSergey Ivanov <seriv@cs.umd.edu>2019-12-09 14:53:39 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2019-12-12 12:24:05 +0100
commitb4e3a83915a6bde49bffcf3364c6a2317854e348 (patch)
tree726c57b1fc52ca77343a223d86ce3115914030a2 /src/compat/compat.h
parentsocket: convert to ipv6_dst_lookup_flow for 5.5 (diff)
downloadwireguard-monolithic-historical-b4e3a83915a6bde49bffcf3364c6a2317854e348.tar.xz
wireguard-monolithic-historical-b4e3a83915a6bde49bffcf3364c6a2317854e348.zip
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 <seriv@cs.umd.edu>
Diffstat (limited to '')
-rw-r--r--src/compat/compat.h4
1 files changed, 2 insertions, 2 deletions
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 <linux/random.h>
#include <linux/slab.h>
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)