comparison OrthancFramework/Resources/Patches/openssl-3.0.0-beta1.patch @ 4702:312e0e29de90 openssl-3.x

compilation using openssl-3.0.0-beta1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Jun 2021 07:09:34 +0200
parents
children a9a75281cae9
comparison
equal deleted inserted replaced
4701:68635d365a27 4702:312e0e29de90
1 diff -urEb openssl-3.0.0-beta1.orig/providers/implementations/rands/seeding/rand_unix.c openssl-3.0.0-beta1/providers/implementations/rands/seeding/rand_unix.c
2 --- openssl-3.0.0-beta1.orig/providers/implementations/rands/seeding/rand_unix.c 2021-06-21 18:25:55.220224494 +0200
3 +++ openssl-3.0.0-beta1/providers/implementations/rands/seeding/rand_unix.c 2021-06-21 18:26:44.884237640 +0200
4 @@ -447,6 +447,7 @@
5 * system call and this should always succeed which renders
6 * this alternative but essentially identical source moot.
7 */
8 +#if !defined(__LSB_VERSION__) // "syscall()" is not available in LSB
9 if (uname(&un) == 0) {
10 kernel[0] = atoi(un.release);
11 p = strchr(un.release, '.');
12 @@ -457,6 +458,7 @@
13 return 0;
14 }
15 }
16 +#endif
17 /* Open /dev/random and wait for it to be readable */
18 if ((fd = open(DEVRANDOM_WAIT, O_RDONLY)) != -1) {
19 if (DEVRANDM_WAIT_USE_SELECT && fd < FD_SETSIZE) {