From 63dacdf65acb21fc4034072bda3795ffda13f4ac Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 7 May 2005 17:09:16 +0000 Subject: r6651: It's not the smartest thing in the world to #define _SAMBA_BUILD_ in a file that is only included if _SAMBA_BUILD_ is defined... Let's see how far this gets us. Volker (This used to be commit 563275b35f76107e3d2a8b0b6e14394b20ecd81b) --- source3/lib/talloc.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c index 18fa04034b..a55300d992 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -29,6 +29,14 @@ #ifdef _SAMBA_BUILD_ #include "includes.h" +/* This is to circumvent SAMBA3's paranoid malloc checker. Here in this file + * we trust ourselves... */ +#ifdef malloc +#undef malloc +#endif +#ifdef realloc +#undef realloc +#endif #else #include #include -- cgit