# HG changeset patch # User Kim Alvefur # Date 1512084457 -3600 # Node ID 6eecf82ccd8e1a3d1fd34f7d9c53cb13e3cee2e8 # Parent ad1e10c93b414a9bdf49f9e7c9f9611993801868 util.crand: Always include stdlib to be sure __GLIBC_PREREQ is defined diff -r ad1e10c93b41 -r 6eecf82ccd8e util-src/crand.c --- 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 + #include "lualib.h" #include "lauxlib.h" @@ -49,11 +51,9 @@ #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