Commit 99fa5ec1ea3810f6635dfe09784d90b753785768
1 parent
cc4d50ff
Exists in
master
and in
3 other branches
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,7 +37,10 @@ | ||
37 | 37 | ||
38 | #pragma GCC diagnostic ignored "-Wsign-compare" | 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 | #include <internals.h> | 44 | #include <internals.h> |
42 | #include "resources.h" | 45 | #include "resources.h" |
43 | 46 |