aboutsummaryrefslogtreecommitdiff
path: root/lib
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
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')
-rw-r--r--lib/config-riscos.h2
-rw-r--r--lib/config-tpf.h2
-rw-r--r--lib/config-win32.h2
-rw-r--r--lib/config-win32ce.h2
-rw-r--r--lib/hostares.c2
-rw-r--r--lib/hostasyn.c2
-rw-r--r--lib/hostip.c2
-rw-r--r--lib/hostip4.c2
-rw-r--r--lib/hostip6.c2
-rw-r--r--lib/hostsyn.c2
-rw-r--r--lib/hostthre.c2
-rw-r--r--lib/ldap.c2
12 files changed, 12 insertions, 12 deletions
diff --git a/lib/config-riscos.h b/lib/config-riscos.h
index a0e6255c4..bb4bafba5 100644
--- a/lib/config-riscos.h
+++ b/lib/config-riscos.h
@@ -170,7 +170,7 @@
/* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H
-/* Define if you need the malloc.h header file. */
+/* Define if you need the malloc.h header file even with stdlib.h */
/* #define NEED_MALLOC_H 1 */
/* Define if you have the <memory.h> header file. */
diff --git a/lib/config-tpf.h b/lib/config-tpf.h
index 4d1831207..5deb112d2 100644
--- a/lib/config-tpf.h
+++ b/lib/config-tpf.h
@@ -290,7 +290,7 @@
/* 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. */
+/* Define to 1 if you need the malloc.h header file even with stdlib.h */
/* #undef NEED_MALLOC_H */
/* Define to 1 if you have the <memory.h> header file. */
diff --git a/lib/config-win32.h b/lib/config-win32.h
index bda87752e..33322c839 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -41,7 +41,7 @@
#define HAVE_MALLOC_H 1
#endif
-/* Define if you need the malloc.h header file. */
+/* Define if you need the malloc.h header file even with stdlib.h */
#ifndef __SALFORDC__
#define NEED_MALLOC_H 1
#endif
diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h
index 6230fc4ca..f9796a302 100644
--- a/lib/config-win32ce.h
+++ b/lib/config-win32ce.h
@@ -39,7 +39,7 @@
/* Define if you have the <malloc.h> header file. */
#define HAVE_MALLOC_H 1
-/* Define if you need the malloc.h header file. */
+/* Define if you need the malloc.h header header file even with stdlib.h */
#define NEED_MALLOC_H 1
/* Define if you have the <netdb.h> header file. */
diff --git a/lib/hostares.c b/lib/hostares.c
index 25a15be91..035d0e222 100644
--- a/lib/hostares.c
+++ b/lib/hostares.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
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
diff --git a/lib/hostip.c b/lib/hostip.c
index f722747ab..b43313854 100644
--- a/lib/hostip.c
+++ b/lib/hostip.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
diff --git a/lib/hostip4.c b/lib/hostip4.c
index 936e436dc..a45d10580 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -26,7 +26,7 @@
#include <string.h>
#include <errno.h>
-#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
+#ifdef NEED_MALLOC_H
#include <malloc.h>
#endif
#ifdef HAVE_SYS_TYPES_H
diff --git a/lib/hostip6.c b/lib/hostip6.c
index a1bc966c1..7ea632a63 100644
--- a/lib/hostip6.c
+++ b/lib/hostip6.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
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
diff --git a/lib/hostthre.c b/lib/hostthre.c
index 65c09372e..16349847e 100644
--- a/lib/hostthre.c
+++ b/lib/hostthre.c
@@ -26,7 +26,7 @@
#include <string.h>
#include <errno.h>
-#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
+#ifdef NEED_MALLOC_H
#include <malloc.h>
#endif
#ifdef HAVE_SYS_TYPES_H
diff --git a/lib/ldap.c b/lib/ldap.c
index dc62c81e9..7b92587d7 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -36,7 +36,7 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
-#if defined(HAVE_MALLOC_H) && defined(NEED_MALLOC_H)
+#ifdef NEED_MALLOC_H
#include <malloc.h>
#endif
#include <errno.h>