From 07a3a4f183de6c748558c6f0d7ada71a9ca17992 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 21 May 2020 16:19:50 -0600 Subject: compat: widen breadth of integer constants Signed-off-by: Jason A. Donenfeld --- src/compat/compat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #ifndef U8_MAX #define U8_MAX ((u8)~0U) #endif -- cgit v1.2.3