MacOS: Add an include of <CommonCrypto/CommonCryptoError.h>

The include is added before <CommonCrypto/CommonRandom.h>,
as required by older releases of the macOS developer tools.

Fixes #16248

CLA: trivial

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16258)
This commit is contained in:
David Bohman 2021-08-06 15:23:00 -07:00 committed by Tomas Mraz
parent 474294cb66
commit ad2fc0bed4

View File

@ -41,6 +41,7 @@
# include <sys/random.h>
#endif
#if defined(__APPLE__)
# include <CommonCrypto/CommonCryptoError.h>
# include <CommonCrypto/CommonRandom.h>
#endif