From 44dccfe6d42ab916a9bde5199ef29e382a623c9e Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 29 Sep 2018 22:48:53 +0200 Subject: [PATCH] TinyC now crashes on Travis when compiling sysrandom --- src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c | 2 +- src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c b/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c index e9518f2c..2c3351d4 100644 --- a/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +++ b/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c @@ -23,7 +23,7 @@ # define HAVE_LINUX_COMPATIBLE_GETRANDOM # else # include -# if defined(SYS_getrandom) && defined(__NR_getrandom) +# if defined(SYS_getrandom) && defined(__NR_getrandom) && !defined(__TINYC__) # define getrandom(B, S, F) syscall(SYS_getrandom, (B), (int) (S), (F)) # define HAVE_LINUX_COMPATIBLE_GETRANDOM # endif diff --git a/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c b/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c index be1fd98b..cfec312f 100644 --- a/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +++ b/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c @@ -22,7 +22,7 @@ # define HAVE_LINUX_COMPATIBLE_GETRANDOM # else # include -# if defined(SYS_getrandom) && defined(__NR_getrandom) +# if defined(SYS_getrandom) && defined(__NR_getrandom) && !defined(__TINYC__) # define getrandom(B, S, F) syscall(SYS_getrandom, (B), (int) (S), (F)) # define HAVE_LINUX_COMPATIBLE_GETRANDOM # endif