summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index bfd09ba20b..66861fba8b 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -61,8 +61,9 @@ extern const char *panic_action;
#endif
#if _SAMBA_BUILD_ == 4
-#if defined(VALGRIND)
+#ifdef VALGRIND
#define strlen(x) valgrind_strlen(x)
+size_t valgrind_strlen(const char *s);
#endif
#endif
@@ -269,7 +270,6 @@ _PUBLIC_ void all_string_sub(char *s,const char *pattern,const char *insert, siz
Unescape a URL encoded string, in place.
**/
_PUBLIC_ void rfc1738_unescape(char *buf);
-size_t valgrind_strlen(const char *s);
/**
format a string into length-prefixed dotted domain format, as used in NBT