From 99fa5ec1ea3810f6635dfe09784d90b753785768 Mon Sep 17 00:00:00 2001 From: André Breves Date: Thu, 2 Apr 2020 17:03:56 -0300 Subject: [PATCH] Include test for presence of malloc.h --- src/core/host.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/host.c b/src/core/host.c index 184b31c..1dcf440 100644 --- a/src/core/host.c +++ b/src/core/host.c @@ -37,7 +37,10 @@ #pragma GCC diagnostic ignored "-Wsign-compare" -#include +#ifdef HAVE_MALLOC_H + #include +#endif // HAVE_MALLOC_H + #include #include "resources.h" -- libgit2 0.21.2