fix build on older macOs releases, aligned_alloc only from catalina.

closes #549
This commit is contained in:
David CARLIER 2022-02-21 16:29:14 +00:00 committed by David Carlier
parent ec2265486e
commit 40e0507a59
2 changed files with 4 additions and 0 deletions

View file

@ -195,6 +195,7 @@ static bool os_random_buf(void* buf, size_t buf_len) {
#elif defined(__APPLE__)
#include <AvailabilityMacros.h>
#if defined(MAC_OS_X_VERSION_10_10) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10
#include <CommonCrypto/CommonCryptoError.h>
#include <CommonCrypto/CommonRandom.h>
#endif
static bool os_random_buf(void* buf, size_t buf_len) {