summaryrefslogtreecommitdiff
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 5c6594ac9..dc307e76c 100644
--- a/entropy.c
+++ b/entropy.c
@@ -39,6 +39,7 @@
39 39
40#include <errno.h> 40#include <errno.h>
41#include <signal.h> 41#include <signal.h>
42#include <stdlib.h>
42#include <string.h> 43#include <string.h>
43#include <unistd.h> 44#include <unistd.h>
44#include <stddef.h> /* for offsetof */ 45#include <stddef.h> /* for offsetof */
@@ -248,6 +249,9 @@ seed_rng(void)
248 249
249#else /* WITH_OPENSSL */ 250#else /* WITH_OPENSSL */
250 251
252#include <stdlib.h>
253#include <string.h>
254
251/* Acutal initialisation is handled in arc4random() */ 255/* Acutal initialisation is handled in arc4random() */
252void 256void
253seed_rng(void) 257seed_rng(void)