Define threads_lib.c functions only for OPENSSL_SYS_UNIX

This matches the declaration in <openssl/crypto.h>.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19322)
This commit is contained in:
J.W. Jagersma 2022-10-01 19:01:40 +02:00 committed by Hugo Landau
parent 71faab72b8
commit 523e54c15c
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,8 @@
*/
#include <openssl/crypto.h>
#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