aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/crand.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-src/crand.c')
-rw-r--r--util-src/crand.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util-src/crand.c b/util-src/crand.c
index ab2f4ad1..cdc3c211 100644
--- a/util-src/crand.c
+++ b/util-src/crand.c
@@ -54,7 +54,11 @@ int getrandom(void *buf, size_t buflen, unsigned int flags) {
#elif defined(WITH_OPENSSL)
#include <openssl/rand.h>
-#elif ! defined(WITH_ARC4RANDOM)
+#elif defined(WITH_ARC4RANDOM)
+#ifdef __linux__
+#include <bsd/stdlib.h>
+#endif
+#else
#error util.crand compiled without a random source
#endif