aboutsummaryrefslogtreecommitdiff
path: root/lib/hostsyn.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-25 13:49:49 +0000
committerYang Tse <yangsita@gmail.com>2006-07-25 13:49:49 +0000
commit13616f8f96b12bbbec1ca40ea4356560a456cc11 (patch)
treebfeb50df46da98e9e0bff82e029ef7e0ad142c51 /lib/hostsyn.c
parentab486d1e278c76d2070f8ed38b7fa2fc12b1cd45 (diff)
Simplify check for NEED_MALLOC_H, and make more explicit that NEED_MALLOC_H shall be defined if <malloc.h> header file must be included even when including <stdlib.h>.
Diffstat (limited to 'lib/hostsyn.c')
-rw-r--r--lib/hostsyn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostsyn.c b/lib/hostsyn.c
index 8cf4da81a..2f816b858 100644
--- a/lib/hostsyn.c
+++ b/lib/hostsyn.c
@@ -25,7 +25,7 @@
#include <string.h>
-#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
+#ifdef NEED_MALLOC_H
#include <malloc.h>
#endif
#ifdef HAVE_SYS_TYPES_H