From 259fe53affab6166e7896a9ce1e712922a40138c Mon Sep 17 00:00:00 2001 From: catalinvasile Date: Thu, 5 Sep 2024 17:08:23 +0200 Subject: [PATCH] Fixed compile error --- src/zip/ZipPack.cpp | 7 +++++++ src/zip/ZipUtils.cpp | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/zip/ZipPack.cpp b/src/zip/ZipPack.cpp index 77cdd3c..915d114 100644 --- a/src/zip/ZipPack.cpp +++ b/src/zip/ZipPack.cpp @@ -36,6 +36,13 @@ void my_zip_close(zip* file) fs_zip_close(file); } +uint64_t computePersistentHash(const AbsPath& path) +{ + uint64_t hash = 0; + for (const tl::string& e : path) + tl::hash_and_combine(hash, e); + return hash; +} uint64_t computePersistentHash(AbsPathView path) { uint64_t hash = 0; diff --git a/src/zip/ZipUtils.cpp b/src/zip/ZipUtils.cpp index 4b6339e..b2e979a 100644 --- a/src/zip/ZipUtils.cpp +++ b/src/zip/ZipUtils.cpp @@ -5,7 +5,6 @@ #include "fs/WritableFolderPack.h" #include "fs/CopyStream.h" #include "fs/zip/ZipWriter.h" -#include "fs/zip/DeflateFileWriter.h" namespace fs {