include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both defined.
authorYang Tse <yangsita@gmail.com>
Tue, 11 Jul 2006 21:34:23 +0000 (21:34 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 11 Jul 2006 21:34:23 +0000 (21:34 +0000)
16 files changed:
lib/config-amigaos.h
lib/config-riscos.h
lib/config-tpf.h
lib/config-win32.h
lib/config-win32ce.h
lib/config.dj
lib/hostares.c
lib/hostasyn.c
lib/hostip.c
lib/hostip4.c
lib/hostip6.c
lib/hostsyn.c
lib/hostthre.c
lib/ldap.c
packages/vms/config-vms.h
src/config-riscos.h

index 89b1650..88e8f5c 100644 (file)
@@ -56,6 +56,8 @@
 #define HAVE_ZLIB_H 1
 #define HAVE_SYS_IOCTL_H 1
 
+#define NEED_MALLOC_H 1
+
 #define USE_OPENSSL 1
 #define USE_SSLEAY 1
 #define CURL_DISABLE_LDAP 1
index fd3656f..a0e6255 100644 (file)
 /* Define if you have the <malloc.h> header file. */
 #define HAVE_MALLOC_H
 
+/* Define if you need the malloc.h header file. */
+/* #define NEED_MALLOC_H 1 */
+
 /* Define if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
index 593437c..4d18312 100644 (file)
 /* Define to 1 if you have the <malloc.h> header file. */
 /* #undef HAVE_MALLOC_H */
 
+/* Define to 1 if you need the malloc.h header file. */
+/* #undef NEED_MALLOC_H */
+
 /* Define to 1 if you have the <memory.h> header file. */
 #define HAVE_MEMORY_H 1
 
index 891183a..bda8775 100644 (file)
 #define HAVE_MALLOC_H 1
 #endif
 
+/* Define if you need the malloc.h header file. */
+#ifndef __SALFORDC__
+#define NEED_MALLOC_H 1
+#endif
+
 /* Define if you have the <netdb.h> header file.  */
 /* #define HAVE_NETDB_H 1 */
 
index 68829ba..6230fc4 100644 (file)
@@ -39,6 +39,9 @@
 /* Define if you have the <malloc.h> header file.  */
 #define HAVE_MALLOC_H 1
 
+/* Define if you need the malloc.h header file. */
+#define NEED_MALLOC_H 1
+
 /* Define if you have the <netdb.h> header file.  */
 /* #define HAVE_NETDB_H 1 */
 
index 1ac700d..2d1295f 100644 (file)
@@ -70,6 +70,8 @@
 #define HAVE_UNISTD_H          1
 #define HAVE_VPRINTF           1
 
+#define NEED_MALLOC_H          1
+
 #if (DJGPP_MINOR >= 4)
 #define HAVE_STRLCAT           1
 #endif
index 9d8ad1b..646af58 100644 (file)
@@ -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
index 63d1389..f7f7b6a 100644 (file)
@@ -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
index 7f071ef..21d2297 100644 (file)
@@ -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
index 4e57d3e..51eca67 100644 (file)
@@ -26,7 +26,7 @@
 #include <string.h>
 #include <errno.h>
 
-#ifdef HAVE_MALLOC_H  /* Win32 */
+#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
 #include <malloc.h>
 #endif
 #ifdef HAVE_SYS_TYPES_H
index b36d62d..eb7c654 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <string.h>
 
-#ifdef HAVE_MALLOC_H
+#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
 #include <malloc.h>
 #endif
 #ifdef HAVE_SYS_TYPES_H
index fecde5f..8cf4da8 100644 (file)
@@ -25,7 +25,7 @@
 
 #include <string.h>
 
-#ifdef HAVE_MALLOC_H
+#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
 #include <malloc.h>
 #endif
 #ifdef HAVE_SYS_TYPES_H
index f55abb6..8162794 100644 (file)
@@ -26,7 +26,7 @@
 #include <string.h>
 #include <errno.h>
 
-#ifdef HAVE_MALLOC_H
+#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
 #include <malloc.h>
 #endif
 #ifdef HAVE_SYS_TYPES_H
index 558d6f4..dc62c81 100644 (file)
@@ -36,7 +36,7 @@
 #ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
 #endif
-#ifdef HAVE_MALLOC_H
+#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
 #include <malloc.h>
 #endif
 #include <errno.h>
index b8da732..3067ce6 100644 (file)
 /* Define if you have the <malloc.h> header file.  */
 #define HAVE_MALLOC_H 1
 
+/* Define if you need the malloc.h header file. */
+/* #define NEED_MALLOC_H 1 */
+
 /* Define if you have the <net/if.h> header file.  */
 #define HAVE_NET_IF_H 1
 
index 3213364..b7473a1 100644 (file)
 /* Define if you have the <malloc.h> header file. */
 #define HAVE_MALLOC_H
 
+/* Define to 1 if you need the malloc.h header file. */
+/* #define NEED_MALLOC_H 1 */
+
 /* Define if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H