summaryrefslogtreecommitdiffstats
path: root/source3/tdb/tdbbackup.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/tdb/tdbbackup.c')
-rw-r--r--source3/tdb/tdbbackup.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/tdb/tdbbackup.c b/source3/tdb/tdbbackup.c
index 36ba7db918..7b344de6c4 100644
--- a/source3/tdb/tdbbackup.c
+++ b/source3/tdb/tdbbackup.c
@@ -303,3 +303,13 @@ static void usage(void)
return ret;
}
+
+#ifdef VALGRIND
+size_t valgrind_strlen(const char *s)
+{
+ size_t count;
+ for(count = 0; *s++; count++)
+ ;
+ return count;
+}
+#endif