From 155b6bda7188323a6062ade282b45e4296bcc825 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 23 Oct 2016 21:18:15 +0900 Subject: compat: grsecurity backports get_random_long --- src/compat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compat.h b/src/compat.h index 6b748d4..6663ec6 100644 --- a/src/compat.h +++ b/src/compat.h @@ -17,8 +17,11 @@ #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) +#include +#ifndef GRSECURITY_VERSION #define get_random_long() (((u64)get_random_int() << 32) | get_random_int()) #endif +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) #define RCU_LOCKDEP_WARN(cond, message) rcu_lockdep_assert(!(cond), message) -- cgit v1.2.3-59-g8ed1b