From 952b3a2c0ff97043a385c00d530d88114f8732e4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 16 Mar 2001 15:19:36 +0000 Subject: [PATCH] added memdebug.h include --- lib/getdate.y | 5 +++++ lib/getpass.c | 5 +++++ lib/if2ip.c | 5 +++++ lib/netrc.c | 5 +++++ lib/telnet.c | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/lib/getdate.y b/lib/getdate.y index 0bf30c43b..50f84390b 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -80,6 +80,11 @@ # include #endif +/* The last #include file should be: */ +#ifdef MALLOCDEBUG +#include "memdebug.h" +#endif + #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __attribute__(x) #endif diff --git a/lib/getpass.c b/lib/getpass.c index d9d19322c..7477742e0 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -66,6 +66,11 @@ # endif #endif +/* The last #include file should be: */ +#ifdef MALLOCDEBUG +#include "memdebug.h" +#endif + /* no perror? make an fprintf! */ #ifndef HAVE_PERROR # define perror(x) fprintf(stderr, "Error in: %s\n", x) diff --git a/lib/if2ip.c b/lib/if2ip.c index 87ead2b9e..0acc3d6c8 100644 --- a/lib/if2ip.c +++ b/lib/if2ip.c @@ -70,6 +70,11 @@ #include "inet_ntoa_r.h" #endif +/* The last #include file should be: */ +#ifdef MALLOCDEBUG +#include "memdebug.h" +#endif + #define SYS_ERROR -1 char *Curl_if2ip(char *interface, char *buf, int buf_size) diff --git a/lib/netrc.c b/lib/netrc.c index 2911af53e..6a712d4fd 100644 --- a/lib/netrc.c +++ b/lib/netrc.c @@ -42,6 +42,11 @@ #include "strequal.h" +/* The last #include file should be: */ +#ifdef MALLOCDEBUG +#include "memdebug.h" +#endif + /* Debug this single source file with: 'make netrc' then run './netrc'! diff --git a/lib/telnet.c b/lib/telnet.c index c1b0601cc..2b37d1755 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -82,6 +82,11 @@ #include "arpa_telnet.h" +/* The last #include file should be: */ +#ifdef MALLOCDEBUG +#include "memdebug.h" +#endif + #define SUBBUFSIZE 512 #define SB_CLEAR(x) x->subpointer = x->subbuffer; -- 2.40.0