diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-05-21 17:09:24 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-05-21 22:02:57 -0600 |
commit | eaffa9232baa50b2843bb5a88c87c507c1e72ba1 (patch) | |
tree | efda542c228bf1152f5055b642ba588b5c83e95d | |
parent | be7e031f71c4c92400a6d9b456e537b8feca6290 (diff) |
compat: widen breadth of prandom_u32_max backport
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/compat/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index 2fbfd8c..afe020e 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -226,7 +226,7 @@ static inline void skb_scrub_packet(struct sk_buff *skb, bool xnet) #define skb_scrub_packet(a, b) skb_scrub_packet(a) #endif -#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) || defined(ISUBUNTU1404)) && !defined(ISRHEL7) +#if ((LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 63) || defined(ISUBUNTU1404)) && !defined(ISRHEL7) #include <linux/random.h> static inline u32 __compat_prandom_u32_max(u32 ep_ro) { |