summaryrefslogtreecommitdiffstats
path: root/entropy.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-07-23 22:25:44 +1000
committerDarren Tucker <dtucker@dtucker.net>2019-07-23 22:26:20 +1000
commit9634ffbf29b3c2493e69d10b37077b09a8cbf5ff (patch)
tree74f29fc321cd0dc93abf18626e083d53e1a0fd01 /entropy.c
parent2ea60312e1c08dea88982fec68244f89a40912ff (diff)
Add headers to prevent warnings w/out OpenSSL.
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/entropy.c b/entropy.c
index 5c6594ac..dc307e76 100644
--- a/entropy.c
+++ b/entropy.c
@@ -39,6 +39,7 @@
#include <errno.h>
#include <signal.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stddef.h> /* for offsetof */
@@ -248,6 +249,9 @@ seed_rng(void)
#else /* WITH_OPENSSL */
+#include <stdlib.h>
+#include <string.h>
+
/* Acutal initialisation is handled in arc4random() */
void
seed_rng(void)