From: J.W. Jagersma Date: Sat, 1 Oct 2022 17:01:40 +0000 (+0200) Subject: Define threads_lib.c functions only for OPENSSL_SYS_UNIX X-Git-Tag: openssl-3.2.0-alpha1~1754 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=523e54c15cfadb8c19f6a181b9a69aabd9f58453;p=thirdparty%2Fopenssl.git Define threads_lib.c functions only for OPENSSL_SYS_UNIX This matches the declaration in . Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19322) --- diff --git a/crypto/threads_lib.c b/crypto/threads_lib.c index 0c7162392df..240ef726ec7 100644 --- a/crypto/threads_lib.c +++ b/crypto/threads_lib.c @@ -8,7 +8,8 @@ */ #include -#ifndef OPENSSL_NO_DEPRECATED_3_0 +#ifdef OPENSSL_SYS_UNIX +# ifndef OPENSSL_NO_DEPRECATED_3_0 void OPENSSL_fork_prepare(void) { @@ -22,4 +23,5 @@ void OPENSSL_fork_child(void) { } +# endif #endif