diff options
author | Sergey Ivanov <seriv@cs.umd.edu> | 2019-12-09 14:53:39 -0500 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-12-12 12:24:05 +0100 |
commit | d612e808b9fa499497578792c5e3b16c4f30ce6a (patch) | |
tree | b000c34faa4aae7af20ba3f04d94856e78dcca62 /src/compat/compat.h | |
parent | 513c6437283f265d7f60d762585a431eb44892cc (diff) |
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>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 4 |
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) |