Software /
code /
prosody
Changeset
8422:6eecf82ccd8e
util.crand: Always include stdlib to be sure __GLIBC_PREREQ is defined
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Dec 2017 00:27:37 +0100 |
parents | 8418:ad1e10c93b41 |
children | 8423:65c82a7d0537 |
files | util-src/crand.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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