Skip to content

Commit

Permalink
include <malloc.h> only if HAVE_MALLOC_H and NEED_MALLOC_H are both d…
Browse files Browse the repository at this point in the history
…efined.
  • Loading branch information
yangtse committed Jul 11, 2006
1 parent 4d95d23 commit fe22872
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 8 deletions.
2 changes: 2 additions & 0 deletions lib/config-amigaos.h
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions lib/config-riscos.h
Expand Up @@ -170,6 +170,9 @@
/* 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

Expand Down
3 changes: 3 additions & 0 deletions lib/config-tpf.h
Expand Up @@ -290,6 +290,9 @@
/* 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

Expand Down
5 changes: 5 additions & 0 deletions lib/config-win32.h
Expand Up @@ -41,6 +41,11 @@
#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 */

Expand Down
3 changes: 3 additions & 0 deletions lib/config-win32ce.h
Expand Up @@ -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 */

Expand Down
2 changes: 2 additions & 0 deletions lib/config.dj
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/hostares.c
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/hostasyn.c
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/hostip.c
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/hostip4.c
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/hostip6.c
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/hostsyn.c
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/hostthre.c
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/ldap.c
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions packages/vms/config-vms.h
Expand Up @@ -115,6 +115,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 <net/if.h> header file. */
#define HAVE_NET_IF_H 1

Expand Down
3 changes: 3 additions & 0 deletions src/config-riscos.h
Expand Up @@ -176,6 +176,9 @@
/* 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

Expand Down

0 comments on commit fe22872

Please sign in to comment.