From 620c8ccffdf71436ad7d7697b62ae7c200416200 Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 14 Mar 2021 16:29:31 +0100 Subject: [PATCH] Fix compile issue --- urbackupclient/client.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/urbackupclient/client.cpp b/urbackupclient/client.cpp index 70c14a69..3433c31f 100644 --- a/urbackupclient/client.cpp +++ b/urbackupclient/client.cpp @@ -8434,6 +8434,18 @@ int64 IndexThread::getChangeIndicator(const SFile & file) } #ifndef _WIN32 +namespace +{ + struct FLockFile + { + FLockFile(std::string fn, bool perm) + : fn(fn), perm(perm) {} + + std::string fn; + bool perm; + }; +} + bool IndexThread::start_shadowcopy_lin( SCDirs * dir, std::string &wpath, bool for_imagebackup, bool * &onlyref, bool* not_configured) { std::string scriptname; @@ -8476,14 +8488,7 @@ bool IndexThread::start_shadowcopy_lin( SCDirs * dir, std::string &wpath, bool f std::string snapshot_target; std::string cbt_info; std::string cbt_file; - struct FLockFile - { - FLockFile(std::string fn, bool perm) - : fn(fn), perm(perm) {} - - std::string fn; - bool perm; - }; + std::vector flock_files; for(size_t i=0;i