diff options
-rw-r--r-- | src/compat.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compat.h b/src/compat.h index 6d9c0e2..b2cc9c9 100644 --- a/src/compat.h +++ b/src/compat.h @@ -18,9 +18,10 @@ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) #include <linux/security.h> -#ifndef GRSECURITY_VERSION -#define get_random_long() (((u64)get_random_int() << 32) | get_random_int()) +#ifdef GRSECURITY_VERSION +#include <linux/random.h> #endif +#define get_random_long() (((u64)get_random_int() << 32) | get_random_int()) #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) |