Fix build on CentOS 7

This commit is contained in:
Dominik Charousset 2022-04-28 19:37:11 +02:00
parent 8786f5ab1d
commit 6182acd198

View file

@ -89,14 +89,14 @@ int perftools_profile = 0;
#endif #endif
#if OPENSSL_VERSION_NUMBER < 0x10100000L #if OPENSSL_VERSION_NUMBER < 0x10100000L
namespace
{
struct CRYPTO_dynlock_value struct CRYPTO_dynlock_value
{ {
std::mutex mtx; std::mutex mtx;
}; };
namespace
{
std::unique_ptr<std::mutex[]> ssl_mtx_tbl; std::unique_ptr<std::mutex[]> ssl_mtx_tbl;
void ssl_lock_fn(int mode, int n, const char*, int) void ssl_lock_fn(int mode, int n, const char*, int)