Mercurial > hg > orthanc
comparison OrthancFramework/Resources/Patches/openssl-1.1.1g.patch @ 4044:d25f4c0fa160 framework
splitting code into OrthancFramework and OrthancServer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jun 2020 20:30:34 +0200 |
parents | Resources/Patches/openssl-1.1.1g.patch@35065dd39cc8 |
children |
comparison
equal
deleted
inserted
replaced
4043:6c6239aec462 | 4044:d25f4c0fa160 |
---|---|
1 diff -urEb openssl-1.1.1g.orig/crypto/rand/rand_unix.c openssl-1.1.1g/crypto/rand/rand_unix.c | |
2 --- openssl-1.1.1g.orig/crypto/rand/rand_unix.c 2020-05-05 17:58:08.785998440 +0200 | |
3 +++ openssl-1.1.1g/crypto/rand/rand_unix.c 2020-05-05 17:58:55.201881117 +0200 | |
4 @@ -445,6 +445,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 @@ -455,6 +456,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) { |