summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/version.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/version.c b/source3/lib/version.c
index 6e469956fa..9835ad4a9c 100644
--- a/source3/lib/version.c
+++ b/source3/lib/version.c
@@ -26,9 +26,11 @@ const char *samba_version_string(void)
return SAMBA_VERSION_OFFICIAL_STRING;
#else
static fstring samba_version;
- fstring tmp_version;
static BOOL init_samba_version;
+#ifdef SAMBA_VENDOR_PATCH
+ fstring tmp_version;
size_t remaining;
+#endif
if (init_samba_version)
return samba_version;