X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Frand%2Frand_unix.c;h=bf5c4c3499e6a4c4f3fb6b0dc18f47b4fe5e462f;hp=de86e48f3a4dbef301046db4b1334a687892f2b7;hb=038b381ecf2a988eee4c7bb21074ed0603303bd1;hpb=81ff9eebbcf15ce04b52cc4257b265617ba412eb;ds=sidebyside diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index de86e48f3a..bf5c4c3499 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -258,6 +258,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