author | Kim Alvefur <zash@zash.se> |
Fri, 01 Dec 2017 00:27:37 +0100 | |
changeset 8425 | 6eecf82ccd8e |
parent 8421 | ad1e10c93b41 |
child 8426 | 65c82a7d0537 |
util-src/crand.c | file | annotate | diff | comparison | revisions |
--- a/util-src/crand.c Thu Nov 23 21:00:29 2017 +0100 +++ b/util-src/crand.c Fri Dec 01 00:27:37 2017 +0100 @@ -21,6 +21,8 @@ #define _DEFAULT_SOURCE +#include <stdlib.h> + #include "lualib.h" #include "lauxlib.h" @@ -49,11 +51,9 @@ #include <sys/random.h> #endif -#elif defined(WITH_ARC4RANDOM) -#include <stdlib.h> #elif defined(WITH_OPENSSL) #include <openssl/rand.h> -#else +#elif ! defined(WITH_ARC4RANDOM) #error util.crand compiled without a random source #endif