Unverified Commit b1cab70b by Quentin Minster Committed by GitHub

streams: openssl: add missing check on OPENSSL_LEGACY_API

The `CRYPTO_THREADID` type is no longer available in OpenSSL ≥ 1.1.0 with deprecated features disabled, and causes build failures. Since the `threadid_cb()` function is only ever called by `git_openssl_set_locking()` when `defined(OPENSSL_LEGACY_API)`, only define it then.
parent 7f6c1ce9
......@@ -249,7 +249,7 @@ int git_openssl_stream_global_init(void)
return 0;
}
#if defined(GIT_THREADS)
#if defined(GIT_THREADS) && defined(OPENSSL_LEGACY_API)
static void threadid_cb(CRYPTO_THREADID *threadid)
{
GIT_UNUSED(threadid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment