projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40cb2be
)
Add a fallback definition for __NR_getrandom for x86 linux
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Mon, 19 Aug 2019 06:25:07 +0000
(08:25 +0200)
committer
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Mon, 19 Aug 2019 14:06:39 +0000
(16:06 +0200)
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9639)
(cherry picked from commit
038b381ecf2a988eee4c7bb21074ed0603303bd1
)
crypto/rand/rand_unix.c
patch
|
blob
|
history
diff --git
a/crypto/rand/rand_unix.c
b/crypto/rand/rand_unix.c
index 5a4d28166deece59e5f77f0ff676124b8ab3aa60..ada42f8b8099832790b32acaa142c55c67a42b63 100644
(file)
--- 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