summaryrefslogtreecommitdiff
path: root/lib/hostasyn.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/hostasyn.c
parentab486d1e278c76d2070f8ed38b7fa2fc12b1cd45 (diff)
downloadgnurl-13616f8f96b12bbbec1ca40ea4356560a456cc11.tar.gz
gnurl-13616f8f96b12bbbec1ca40ea4356560a456cc11.tar.bz2
gnurl-13616f8f96b12bbbec1ca40ea4356560a456cc11.zip
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/hostasyn.c')
-rw-r--r--lib/hostasyn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostasyn.c b/lib/hostasyn.c
index 5efd8320b..3df147910 100644
--- a/lib/hostasyn.c
+++ b/lib/hostasyn.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