summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 2a370618..208ea77a 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -35,7 +35,9 @@
#include <string.h>
#include <assert.h>
#include <ctype.h>
-#include <malloc.h>
+#if HAVE_MALLOC_H
+# include <malloc.h>
+#endif
#include "rsyslog.h"
#include "srUtils.h"
#include "stringbuf.h"