diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-29 12:19:25 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-07-29 13:44:57 +0200 |
commit | 719ada95688699c8a35b5b13632ae1abb5474a47 (patch) | |
tree | 10ffa9ec58ad227236d982ac94b7f8f7d3508d4a | |
parent | ca573d65b73b16f1d7228000e386e5f3649442b8 (diff) | |
download | gnutls-719ada95688699c8a35b5b13632ae1abb5474a47.tar.gz |
getrandom: use SYS_getrandom instead of __NR_getrandom
These are identical definitions, but according to syscall()
SYS_getrandom is the expected value.
-rw-r--r-- | lib/nettle/rnd-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nettle/rnd-linux.c b/lib/nettle/rnd-linux.c index 121acfeaeb..d7f07a6eba 100644 --- a/lib/nettle/rnd-linux.c +++ b/lib/nettle/rnd-linux.c @@ -56,7 +56,7 @@ static dev_t _gnutls_urandom_fd_rdev = 0; # else # include <sys/syscall.h> # undef getrandom -# define getrandom(dst,s,flags) syscall(__NR_getrandom, (void*)dst, (size_t)s, (unsigned int)flags) +# define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags) # endif static unsigned have_getrandom(void) |