summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-05-07 21:18:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:50 -0500
commitbe6949362f6be0eb5aa1ddf86061bad2a5674073 (patch)
tree8782d20fcd9eda581e8a4b0a06f23b7d0d87c785
parentd21514eb7a1ec03c877048e58a54bcbf2cd055f2 (diff)
downloadsamba-be6949362f6be0eb5aa1ddf86061bad2a5674073.tar.gz
samba-be6949362f6be0eb5aa1ddf86061bad2a5674073.tar.xz
samba-be6949362f6be0eb5aa1ddf86061bad2a5674073.zip
r6654: Make talloc.c 4.0-ready
-rw-r--r--source/lib/talloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/lib/talloc.c b/source/lib/talloc.c
index a55300d9922..b9a61dd447a 100644
--- a/source/lib/talloc.c
+++ b/source/lib/talloc.c
@@ -29,6 +29,7 @@
#ifdef _SAMBA_BUILD_
#include "includes.h"
+#if (SAMBA_VERSION_MAJOR<4)
/* This is to circumvent SAMBA3's paranoid malloc checker. Here in this file
* we trust ourselves... */
#ifdef malloc
@@ -37,6 +38,7 @@
#ifdef realloc
#undef realloc
#endif
+#endif
#else
#include <stdio.h>
#include <stdlib.h>