[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
```
#if defined(__linux__)
#  include <sys/syscall.h>
#endif
```

-- 
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...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190214/10067129/attachment.html>


More information about the Gnutls-devel mailing list