diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-07-23 22:25:44 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-07-23 22:26:20 +1000 |
commit | 9634ffbf29b3c2493e69d10b37077b09a8cbf5ff (patch) | |
tree | 74f29fc321cd0dc93abf18626e083d53e1a0fd01 /entropy.c | |
parent | 2ea60312e1c08dea88982fec68244f89a40912ff (diff) |
Add headers to prevent warnings w/out OpenSSL.
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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() */ |
252 | void | 256 | void |
253 | seed_rng(void) | 257 | seed_rng(void) |