From 59091fa8602f46645dc5380f9e9c1e8abd9a326b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 17 Feb 2004 07:40:02 +0000 Subject: If CURLDEBUG is set we use the libcurl internal memdebug system to track memory leaks etc. --- ares/ares_private.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ares') diff --git a/ares/ares_private.h b/ares/ares_private.h index 1bdaf305f..123c96a0c 100644 --- a/ares/ares_private.h +++ b/ares/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 -- cgit v1.2.3