Commit 99fa5ec1ea3810f6635dfe09784d90b753785768

Authored by André Breves
1 parent cc4d50ff

Include test for presence of malloc.h

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
src/core/host.c
... ... @@ -37,7 +37,10 @@
37 37  
38 38 #pragma GCC diagnostic ignored "-Wsign-compare"
39 39  
40   -#include <malloc.h>
  40 +#ifdef HAVE_MALLOC_H
  41 + #include <malloc.h>
  42 +#endif // HAVE_MALLOC_H
  43 +
41 44 #include <internals.h>
42 45 #include "resources.h"
43 46  
... ...