[gnutls-devel] GnuTLS | tests: wrap ADD_SYSCALL for getrandom in test for SYS_getrandom (!926)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Thu Feb 14 16:22:44 CET 2019
Tim Rühsen started a new discussion on tests/seccomp.c:
> /* to read from /dev/urandom */
> ADD_SYSCALL(read, 0);
> +#ifdef SYS_getrandom
`SYS_getrandom` will only be defined if you include the right header file.
It seems this has been solved in `lib/nettle/sysrng-linux.c`. Taking that code, the needed include stuff looks like
# include <sys/syscall.h>
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/926#note_141388773
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-devel