Mercurial > hg > orthanc
view OrthancFramework/Resources/Patches/openssl-3.1.0.patch @ 5229:365eb5ea5492 db-protobuf
integration mainline->db-protobuf
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Apr 2023 09:46:40 +0200 |
parents | 993a6b23f032 |
children | bd25d1c33362 |
line wrap: on
line source
diff -urEb openssl-3.1.0.orig/providers/implementations/rands/seeding/rand_unix.c openssl-3.1.0/providers/implementations/rands/seeding/rand_unix.c --- openssl-3.1.0.orig/providers/implementations/rands/seeding/rand_unix.c 2023-04-04 09:23:30.574295136 +0200 +++ openssl-3.1.0/providers/implementations/rands/seeding/rand_unix.c 2023-04-04 09:23:57.766784026 +0200 @@ -452,6 +452,7 @@ * system call and this should always succeed which renders * this alternative but essentially identical source moot. */ +#if !defined(__LSB_VERSION__) // "syscall()" is not available in LSB if (uname(&un) == 0) { kernel[0] = atoi(un.release); p = strchr(un.release, '.'); @@ -462,6 +463,7 @@ return 0; } } +#endif /* Open /dev/random and wait for it to be readable */ if ((fd = open(DEVRANDOM_WAIT, O_RDONLY)) != -1) { if (DEVRANDM_WAIT_USE_SELECT && fd < FD_SETSIZE) {