Fixed build with DEVRANDOM

This commit is contained in:
Alexey Milovidov 2019-12-15 04:28:29 +03:00
parent 1e887162a3
commit c303d0b6fc
3 changed files with 11 additions and 5 deletions

2
.gitmodules vendored
View File

@ -121,4 +121,4 @@
url = https://github.com/curl/curl.git
[submodule "contrib/openssl"]
path = contrib/openssl
url = https://github.com/openssl/openssl.git
url = https://github.com/ClickHouse-Extras/openssl.git

2
contrib/openssl vendored

@ -1 +1 @@
Subproject commit 4e3ee452d091615e52a43e6e7c6db7d09e260353
Subproject commit ecca91837a970a820aada088ac16f8784b0958a9

View File

@ -26,9 +26,15 @@ extern "C" {
*/
# define OPENSSL_CONFIGURED_API 30000
# ifndef OPENSSL_RAND_SEED_OS
# define OPENSSL_RAND_SEED_OS
# endif
/// This fragment was edited to avoid dependency on "getrandom" function that is not available on old libc and old Linux kernels.
/// The DEVRANDOM method is also good.
//# ifndef OPENSSL_RAND_SEED_OS
//# define OPENSSL_RAND_SEED_OS
//# endif
#define OPENSSL_RAND_SEED_DEVRANDOM
# ifndef OPENSSL_THREADS
# define OPENSSL_THREADS
# endif