aboutsummaryrefslogtreecommitdiff
path: root/lib/hostares.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hostares.c')
-rw-r--r--lib/hostares.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostares.c b/lib/hostares.c
index 9d8ad1ba8..646af5839 100644
--- a/lib/hostares.c
+++ b/lib/hostares.c
@@ -25,7 +25,7 @@
#include <string.h>
-#ifdef HAVE_MALLOC_H /* Win32 */
+#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
#include <malloc.h>
#endif
#ifdef HAVE_SYS_TYPES_H