From 24cdb1bfecbd765e829b9932a5a60ff63a7dff4b Mon Sep 17 00:00:00 2001 From: lprimak Date: Sun, 12 Sep 2021 20:21:30 -0500 Subject: [PATCH] MacOS prior to 10.12 does not support random API correctly Fixes #16517 Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/16592) --- include/crypto/rand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/crypto/rand.h b/include/crypto/rand.h index ac41a9f62bf..fa3b5b2b939 100644 --- a/include/crypto/rand.h +++ b/include/crypto/rand.h @@ -24,7 +24,7 @@ # if defined(__APPLE__) && !defined(OPENSSL_NO_APPLE_CRYPTO_RANDOM) # include -# if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000) || \ +# if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200) || \ (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) # define OPENSSL_APPLE_CRYPTO_RANDOM 1 # include -- 2.47.2