From 523e54c15cfadb8c19f6a181b9a69aabd9f58453 Mon Sep 17 00:00:00 2001 From: "J.W. Jagersma" Date: Sat, 1 Oct 2022 19:01:40 +0200 Subject: [PATCH] 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) --- crypto/threads_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/threads_lib.c b/crypto/threads_lib.c index 0c7162392d..240ef726ec 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