From 18609e296f5489d93889fad1b47ff834d3a53e6f Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Tue, 20 Feb 2024 20:14:10 +0400 Subject: [PATCH] attempt to fix build for macos --- src/crypto/tree-hash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/crypto/tree-hash.c b/src/crypto/tree-hash.c index b700e64a..2909f319 100644 --- a/src/crypto/tree-hash.c +++ b/src/crypto/tree-hash.c @@ -8,8 +8,9 @@ #include #include "hash-ops.h" -#include "malloc.h" - +#ifdef _M_ARM64 + #include "malloc.h" +#endif void tree_hash(const char (*hashes)[HASH_SIZE], size_t count, char *root_hash) { assert(count > 0); if (count == 1) {