From 00f69a8725e08e38cf03696155e63c3c0b83dee0 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 4 Nov 2016 16:49:06 +0100 Subject: compat: some grsec have get_random_long; others do not --- src/compat.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 -#ifndef GRSECURITY_VERSION -#define get_random_long() (((u64)get_random_int() << 32) | get_random_int()) +#ifdef GRSECURITY_VERSION +#include #endif +#define get_random_long() (((u64)get_random_int() << 32) | get_random_int()) #endif #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) -- cgit v1.2.3-59-g8ed1b