TinyC now crashes on Travis when compiling sysrandom

This commit is contained in:
Frank Denis 2018-09-29 22:48:53 +02:00
parent 52fdd7ab39
commit 44dccfe6d4
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
# define HAVE_LINUX_COMPATIBLE_GETRANDOM
# else
# include <sys/syscall.h>
# 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

View File

@ -22,7 +22,7 @@
# define HAVE_LINUX_COMPATIBLE_GETRANDOM
# else
# include <sys/syscall.h>
# 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