diff options
author | Yang Tse <yangsita@gmail.com> | 2006-07-11 21:34:23 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-07-11 21:34:23 +0000 |
commit | fe22872d14c3b6b63ac27a9017ed9695ac3b932b (patch) | |
tree | 13371b16e69390845b8227c183cfae2ba5b29f56 /lib/hostip.c | |
parent | 4d95d23d99a35a098cdc17f91b36d41dab98a30c (diff) | |
download | curl-fe22872d14c3b6b63ac27a9017ed9695ac3b932b.tar.gz |
include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.
Diffstat (limited to 'lib/hostip.c')
-rw-r--r-- | lib/hostip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index 7f071efb2..21d2297fa 100644 --- a/lib/hostip.c +++ b/lib/hostip.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 |