From 75fbd42ca3d4528cafbddbbd4a3da9de335e0a5f Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 17 Sep 2009 10:50:44 +0000 Subject: [PATCH] Fix unbound-host compile with --enable-alloc-checks. git-svn-id: file:///svn/unbound/trunk@1836 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ smallapp/unbound-host.c | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index c23f713df..67d9ae118 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +17 September 2009: Wouter + - fix compile of unbound-host when --enable-alloc-checks. + 16 September 2009: Wouter - Fix memory leak reported by Tao Ma. - Fix memstats test tool for log-time-ascii log format. diff --git a/smallapp/unbound-host.c b/smallapp/unbound-host.c index 7fd21e155..470fd7eac 100644 --- a/smallapp/unbound-host.c +++ b/smallapp/unbound-host.c @@ -41,6 +41,13 @@ */ #include "config.h" +/* remove alloc checks, not in this part of the code */ +#ifdef UNBOUND_ALLOC_STATS +#undef malloc +#undef calloc +#undef free +#undef realloc +#endif #include "libunbound/unbound.h" #include -- 2.47.3