diff options
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/rand_unix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index 5a4d28166d..ada42f8b80 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -279,6 +279,10 @@ static ssize_t sysctl_random(char *buf, size_t buflen) # if defined(__linux) && !defined(__NR_getrandom) # if defined(__arm__) && defined(__NR_SYSCALL_BASE) # define __NR_getrandom (__NR_SYSCALL_BASE+384) +# elif defined(__i386__) +# define __NR_getrandom 355 +# elif defined(__x86_64__) && !defined(__ILP32__) +# define __NR_getrandom 318 # endif # endif |