aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-04 13:25:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-04 13:25:12 +0000
commit5d9ae88f58349022ee437fdf4dfc9e3a7f755beb (patch)
treeeaa66a90d9abeb791b72a83f719636fb85266941 /lib/memdebug.h
parent9d066935e5e4e0d7477520eeb6fd7b82ce6bebc2 (diff)
getaddrinfo() cleanups
Diffstat (limited to 'lib/memdebug.h')
-rw-r--r--lib/memdebug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/memdebug.h b/lib/memdebug.h
index 2a6a35ac2..ebb240928 100644
--- a/lib/memdebug.h
+++ b/lib/memdebug.h
@@ -6,6 +6,8 @@
#include <memory.h>
#endif
+extern FILE *logfile;
+
/* memory functions */
void *curl_domalloc(size_t size, int line, const char *source);
void *curl_dorealloc(void *ptr, size_t size, int line, const char *source);
@@ -35,6 +37,11 @@ int curl_fclose(FILE *file, int line, const char *source);
#define accept(sock,addr,len)\
curl_accept(sock,addr,len,__LINE__,__FILE__)
+#define getaddrinfo(host,serv,hint,res) \
+ curl_getaddrinfo(host,serv,hint,res,__LINE__,__FILE__)
+#define freeaddrinfo(data) \
+ curl_freeaddrinfo(data,__LINE__,__FILE__)
+
/* sclose is probably already defined, redefine it! */
#undef sclose
#define sclose(sockfd) curl_sclose(sockfd,__LINE__,__FILE__)