diff --git Source/WebCore/page/Crypto.cpp Source/WebCore/page/Crypto.cpp index ed1278b..f94db1b 100644 --- Source/WebCore/page/Crypto.cpp +++ Source/WebCore/page/Crypto.cpp @@ -31,7 +31,7 @@ #include "config.h" #include "Crypto.h" -#if OS(DARWIN) +#if OS(DARWIN) && (__MAC_OS_X_VERSION_MIN_REQUIRED > 1090) #include "CommonCryptoUtilities.h" #endif #include "Document.h" @@ -60,7 +60,7 @@ ExceptionOr<void> Crypto::getRandomValues(ArrayBufferView& array) return Exception { TypeMismatchError }; if (array.byteLength() > 65536) return Exception { QuotaExceededError }; -#if OS(DARWIN) +#if OS(DARWIN) && (__MAC_OS_X_VERSION_MIN_REQUIRED > 1090) int rc = CCRandomCopyBytes(kCCRandomDefault, array.baseAddress(), array.byteLength()); RELEASE_ASSERT(rc == kCCSuccess); #else