From f4275b15a5c940ff5e3bbd86d11c4322d24003fc Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <vital.had@gmail.com>
Date: Wed, 9 Oct 2024 18:59:31 +0700
Subject: [PATCH 07/10] libqcdm: fix malloc include

---
 libqcdm/src/utils.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libqcdm/src/utils.c b/libqcdm/src/utils.c
index 4c1ce31e..29e091eb 100644
--- a/libqcdm/src/utils.c
+++ b/libqcdm/src/utils.c
@@ -18,7 +18,11 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <unistd.h>
+#ifdef __APPLE__
+#include <malloc/malloc.h>
+#else
 #include <malloc.h>
+#endif
 #include <fcntl.h>
 #include <string.h>
 
-- 
2.46.1

