summaryrefslogtreecommitdiffstats
path: root/entropy.c
diff options
context:
space:
mode:
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)