summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-26 17:19:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:47 -0500
commit6e9097045fcea332d91791d9820d7ad8e086f6d4 (patch)
treed78de7e4e3663e2436a32e2778c310a28bb7e214 /source4/lib/ldb
parenta0d6264b9012372cd2e898003fb4b7db86ea016e (diff)
downloadsamba-6e9097045fcea332d91791d9820d7ad8e086f6d4.tar.gz
samba-6e9097045fcea332d91791d9820d7ad8e086f6d4.tar.bz2
samba-6e9097045fcea332d91791d9820d7ad8e086f6d4.zip
r17842: After talking to Simo, apply the next attempt to resolve the strnlen
problem. Timegm is the same. Simo says this is just a workaround, but it helps for now. Feel free to revert. Volker (This used to be commit fd166ca0c079d83081bc1d631fe40b965c7873d4)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/replace/replace.c2
-rw-r--r--source4/lib/ldb/replace/timegm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/replace/replace.c b/source4/lib/ldb/replace/replace.c
index faa5771a76..a63613fc10 100644
--- a/source4/lib/ldb/replace/replace.c
+++ b/source4/lib/ldb/replace/replace.c
@@ -23,7 +23,7 @@
#include "includes.h"
#include "ldb/include/includes.h"
-#ifndef HAVE_STRNLEN
+#if !defined(HAVE_STRNLEN) && !defined(_SAMBA_BUILD_)
/**
Some platforms don't have strnlen
**/
diff --git a/source4/lib/ldb/replace/timegm.c b/source4/lib/ldb/replace/timegm.c
index 5fb15475f3..10631befd9 100644
--- a/source4/lib/ldb/replace/timegm.c
+++ b/source4/lib/ldb/replace/timegm.c
@@ -38,7 +38,7 @@
#include "includes.h"
#include "ldb/include/includes.h"
-#ifndef HAVE_TIMEGM
+#if !defined(HAVE_TIMEGM) && !defined(_SAMBA_BUILD_)
static int is_leap(unsigned y)
{