summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-05-21 16:19:50 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-05-21 22:02:57 -0600
commit07a3a4f183de6c748558c6f0d7ada71a9ca17992 (patch)
tree879583ba93a99395d8534eec600922f5f220beb9
parent989e7c2a62e873107d215b5ee02b12e175a70635 (diff)
compat: widen breadth of integer constants
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/compat/compat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 49d7a30..1716311 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -233,7 +233,8 @@ static inline u32 __compat_prandom_u32_max(u32 ep_ro)
#define prandom_u32_max __compat_prandom_u32_max
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 75) && !defined(ISRHEL7)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0)
+#include <linux/kernel.h>
#ifndef U8_MAX
#define U8_MAX ((u8)~0U)
#endif