diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-17 07:40:02 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-17 07:40:02 +0000 |
commit | c0f9b281774a68c7d468a289fc955f588cd6d1cd (patch) | |
tree | 8cff982d859f58ffd45e40392c6d7c019fdad2fc /ares_private.h | |
parent | 41630bdc9395d05746f916f4b0d6ca177813775e (diff) | |
download | c-ares-c0f9b281774a68c7d468a289fc955f588cd6d1cd.tar.gz c-ares-c0f9b281774a68c7d468a289fc955f588cd6d1cd.tar.bz2 c-ares-c0f9b281774a68c7d468a289fc955f588cd6d1cd.zip |
If CURLDEBUG is set we use the libcurl internal memdebug system to track
memory leaks etc.
Diffstat (limited to 'ares_private.h')
-rw-r--r-- | ares_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ares_private.h b/ares_private.h index 1bdaf30..123c96a 100644 --- a/ares_private.h +++ b/ares_private.h @@ -143,3 +143,11 @@ void ares__send_query(ares_channel channel, struct query *query, time_t now); void ares__close_sockets(struct server_state *server); int ares__get_hostent(FILE *fp, struct hostent **host); int ares__read_line(FILE *fp, char **buf, int *bufsize); + +#ifdef CURLDEBUG +/* This is low-level hard-hacking memory leak tracking and similar. Using the + libcurl lowlevel code from within library is ugly and only works when + c-ares is built and linked with a similarly debug-build libcurl, but we do + this anyway for convenience. */ +#include "../lib/memdebug.h" +#endif |