summaryrefslogtreecommitdiff
path: root/src/random.c
diff options
context:
space:
mode:
authorDaan <daanl@outlook.com>2022-02-22 16:42:45 -0800
committerGitHub <noreply@github.com>2022-02-22 16:42:45 -0800
commitf1d7f972a9008fe8043c2a814b7317e41c25b31c (patch)
tree70f5142971de58b8a6022222b97104aeebec49cd /src/random.c
parent3040da1cb834f46077ac4bac3e44cff5878b74e9 (diff)
parent40e0507a5959ee218f308d33aec212c3ebeef3bb (diff)
Merge pull request #550 from devnexen/old_apple_build_fix
fix build on older macOs releases, aligned_alloc only from catalina.
Diffstat (limited to 'src/random.c')
-rw-r--r--src/random.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/random.c b/src/random.c
index 0b44c8b..5057a62 100644
--- a/src/random.c
+++ b/src/random.c
@@ -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) {