diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-10-14 17:32:31 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-10-14 17:32:31 +0000 |
commit | 46886111a32cfde5b6bb23622c1f09cf0189dc22 (patch) | |
tree | 3444ce7b2533041d2cb7102fabed6715e5e5b7a1 /src | |
parent | a1933bd1847951b959016f59ee744d1b18a00142 (diff) | |
download | skalibs-46886111a32cfde5b6bb23622c1f09cf0189dc22.tar.xz |
Include skalibs/nonposix.h so BSDs can find arc4random
Diffstat (limited to 'src')
-rw-r--r-- | src/librandom/random_init.c | 1 | ||||
-rw-r--r-- | src/librandom/random_string.c | 1 | ||||
-rw-r--r-- | src/librandom/random_uint32.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/librandom/random_init.c b/src/librandom/random_init.c index e990fb4..a26217f 100644 --- a/src/librandom/random_init.c +++ b/src/librandom/random_init.c @@ -4,6 +4,7 @@ #ifdef SKALIBS_HASARC4RANDOM +#include <skalibs/nonposix.h> #include <stdlib.h> #include <skalibs/random.h> diff --git a/src/librandom/random_string.c b/src/librandom/random_string.c index c87c8c2..83aca2c 100644 --- a/src/librandom/random_string.c +++ b/src/librandom/random_string.c @@ -4,6 +4,7 @@ #ifdef SKALIBS_HASARC4RANDOM +#include <skalibs/nonposix.h> #include <stdlib.h> #include <skalibs/random.h> diff --git a/src/librandom/random_uint32.c b/src/librandom/random_uint32.c index d011885..5fda0d3 100644 --- a/src/librandom/random_uint32.c +++ b/src/librandom/random_uint32.c @@ -4,6 +4,7 @@ #ifdef SKALIBS_HASARC4RANDOM +#include <skalibs/nonposix.h> #include <stdlib.h> #include <skalibs/random.h> @@ -15,6 +16,7 @@ uint32 random_uint32 (uint32 n) #else #include <skalibs/uint32.h> +#include <skalibs/bytestr.h> #include <skalibs/random.h> static inline uint32 random_mask2 (register uint32 n) |