From ac6e7808c2d2c173b5ee72ede108031094d4f07f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 1 Dec 2017 00:27:37 +0100 Subject: util.crand: Always include stdlib to be sure __GLIBC_PREREQ is defined --- util-src/crand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util-src/crand.c b/util-src/crand.c index 7eea1f2b..51d934c8 100644 --- a/util-src/crand.c +++ b/util-src/crand.c @@ -21,6 +21,8 @@ #define _DEFAULT_SOURCE +#include + #include "lualib.h" #include "lauxlib.h" @@ -49,11 +51,9 @@ int getrandom(void *buf, size_t buflen, unsigned int flags) { #include #endif -#elif defined(WITH_ARC4RANDOM) -#include #elif defined(WITH_OPENSSL) #include -#else +#elif ! defined(WITH_ARC4RANDOM) #error util.crand compiled without a random source #endif -- cgit v1.2.3