skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit 46886111a32cfde5b6bb23622c1f09cf0189dc22
parent a1933bd1847951b959016f59ee744d1b18a00142
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Fri, 14 Oct 2016 17:32:31 +0000

  Include skalibs/nonposix.h so BSDs can find arc4random

Diffstat:
Mpackage/deps.mak | 4++--
Msrc/librandom/random_init.c | 1+
Msrc/librandom/random_string.c | 1+
Msrc/librandom/random_uint32.c | 2++
4 files changed, 6 insertions(+), 2 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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)