summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/talloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c
index a55300d992..b9a61dd447 100644
--- a/source3/lib/talloc.c
+++ b/source3/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>