alloc_lite works

git-svn-id: file:///svn/unbound/trunk@2015 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2010-03-10 11:01:33 +00:00
parent 0000843c32
commit 46df44f321
7 changed files with 91 additions and 0 deletions
+7
View File
@@ -45,6 +45,13 @@
#include "libunbound/context.h"
#include "util/locks.h"
#include "util/log.h"
#ifdef UNBOUND_ALLOC_LITE
#undef malloc
#undef calloc
#undef realloc
#undef free
#undef strdup
#endif
/** keeping track of the async ids */
struct track_id {
+8
View File
@@ -74,6 +74,14 @@
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
#ifdef UNBOUND_ALLOC_LITE
#undef malloc
#undef calloc
#undef realloc
#undef free
#undef strdup
char* unbound_lite_wrapstr(char* s) { return s; }
#endif
struct todo_item;
struct labdata;