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 | |
parent | a1933bd1847951b959016f59ee744d1b18a00142 (diff) | |
download | skalibs-46886111a32cfde5b6bb23622c1f09cf0189dc22.tar.xz |
Include skalibs/nonposix.h so BSDs can find arc4random
-rw-r--r-- | package/deps.mak | 4 | ||||
-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 |
4 files changed, 6 insertions, 2 deletions
diff --git a/package/deps.mak b/package/deps.mak index a37b685..89b982a 100644 --- a/package/deps.mak +++ b/package/deps.mak @@ -130,12 +130,12 @@ src/libdatastruct/gensetdyn_ready.o src/libdatastruct/gensetdyn_ready.lo: src/li src/libdatastruct/gensetdyn_zero.o src/libdatastruct/gensetdyn_zero.lo: src/libdatastruct/gensetdyn_zero.c src/include/skalibs/gensetdyn.h src/librandom/random_char.o src/librandom/random_char.lo: src/librandom/random_char.c src/include/skalibs/random.h src/librandom/random_finish.o src/librandom/random_finish.lo: src/librandom/random_finish.c src/include/skalibs/djbunix.h src/librandom/random-internal.h src/include/skalibs/random.h src/include/skalibs/sysdeps.h -src/librandom/random_init.o src/librandom/random_init.lo: src/librandom/random_init.c src/include/skalibs/djbunix.h src/librandom/random-internal.h src/include/skalibs/random.h src/include/skalibs/sysdeps.h +src/librandom/random_init.o src/librandom/random_init.lo: src/librandom/random_init.c src/include/skalibs/djbunix.h src/include/skalibs/nonposix.h src/librandom/random-internal.h src/include/skalibs/random.h src/include/skalibs/sysdeps.h src/librandom/random_makeseed.o src/librandom/random_makeseed.lo: src/librandom/random_makeseed.c src/include/skalibs/sha1.h src/include/skalibs/tai.h src/include/skalibs/uint32.h src/librandom/random_name.o src/librandom/random_name.lo: src/librandom/random_name.c src/include/skalibs/random.h src/librandom/random_sauniquename.o src/librandom/random_sauniquename.lo: src/librandom/random_sauniquename.c src/include/skalibs/random.h src/include/skalibs/skamisc.h src/include/skalibs/stralloc.h src/librandom/random_string.o src/librandom/random_string.lo: src/librandom/random_string.c src/include/skalibs/allreadwrite.h src/include/skalibs/nonposix.h src/librandom/random-internal.h src/include/skalibs/random.h src/include/skalibs/sysdeps.h -src/librandom/random_uint32.o src/librandom/random_uint32.lo: src/librandom/random_uint32.c src/include/skalibs/random.h src/include/skalibs/sysdeps.h src/include/skalibs/uint32.h +src/librandom/random_uint32.o src/librandom/random_uint32.lo: src/librandom/random_uint32.c src/include/skalibs/bytestr.h src/include/skalibs/nonposix.h src/include/skalibs/random.h src/include/skalibs/sysdeps.h src/include/skalibs/uint32.h src/librandom/random_unsort.o src/librandom/random_unsort.lo: src/librandom/random_unsort.c src/include/skalibs/bytestr.h src/include/skalibs/random.h src/include/skalibs/uint32.h src/librandom/surf.o src/librandom/surf.lo: src/librandom/surf.c src/include/skalibs/bytestr.h src/include/skalibs/surf.h src/include/skalibs/uint32.h src/librandom/surf_init.o src/librandom/surf_init.lo: src/librandom/surf_init.c src/include/skalibs/surf.h src/include/skalibs/uint32.h 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) |