summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-05-07 22:09:24 +0000
committerVolker Lendecke <vlendec@samba.org>2005-05-07 22:09:24 +0000
commite938338ec95255cb0cd5d1ee96b653eddbac3966 (patch)
tree73a1ee63eb41577a9b78c7efbf4da1f63bb21edd
parent4850fb3d638d7002ee63a76ddbef2c730188c0b8 (diff)
downloadsamba-e938338ec95255cb0cd5d1ee96b653eddbac3966.tar.gz
samba-e938338ec95255cb0cd5d1ee96b653eddbac3966.tar.xz
samba-e938338ec95255cb0cd5d1ee96b653eddbac3966.zip
r6658: Sorry for the spam... I think now I've got a version that should compile on
trunk, 3_0 and 4_0. Volker
-rw-r--r--source/lib/talloc.c2
-rw-r--r--source/lib/talloctort.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/talloc.c b/source/lib/talloc.c
index 532d0fd6c40..3650ab7f51b 100644
--- a/source/lib/talloc.c
+++ b/source/lib/talloc.c
@@ -29,7 +29,7 @@
#ifdef _SAMBA_BUILD_
#include "includes.h"
-#if ((SAMBA_VERSION_MAJOR==3)&&(SAMBA_VERSION_MINOR==0))
+#if ((SAMBA_VERSION_MAJOR==3)&&(SAMBA_VERSION_MINOR<9))
/* This is to circumvent SAMBA3's paranoid malloc checker. Here in this file
* we trust ourselves... */
#ifdef malloc
diff --git a/source/lib/talloctort.c b/source/lib/talloctort.c
index 1fa9722e10c..0447749abde 100644
--- a/source/lib/talloctort.c
+++ b/source/lib/talloctort.c
@@ -38,7 +38,7 @@ typedef enum {False=0,True=1} BOOL;
#endif
/* Samba3 does not define the timeval functions below */
-#if !defined(_SAMBA_BUILD_) || ((SAMBA_VERSION_MAJOR==3)&&(SAMBA_VERSION_MINOR==0))
+#if !defined(_SAMBA_BUILD_) || ((SAMBA_VERSION_MAJOR==3)&&(SAMBA_VERSION_MINOR<9))
static struct timeval timeval_current(void)
{
@@ -839,7 +839,7 @@ BOOL torture_local_talloc(void)
-#if !defined(_SAMBA_BUILD_) || ((SAMBA_VERSION_MAJOR==3)&&(SAMBA_VERSION_MINOR==0))
+#if !defined(_SAMBA_BUILD_) || ((SAMBA_VERSION_MAJOR==3)&&(SAMBA_VERSION_MINOR<9))
int main(void)
{
if (!torture_local_talloc()) {