diff --git a/src/archive/plugins/ZzipArchivePlugin.cxx b/src/archive/plugins/ZzipArchivePlugin.cxx index e69c7679d..fc40e7689 100644 --- a/src/archive/plugins/ZzipArchivePlugin.cxx +++ b/src/archive/plugins/ZzipArchivePlugin.cxx @@ -85,11 +85,12 @@ ZzipArchiveFile::Visit(ArchiveVisitor &visitor) /* single archive handling */ -struct ZzipInputStream final : public InputStream { +class ZzipInputStream final : public InputStream { std::shared_ptr dir; - ZZIP_FILE *file; + ZZIP_FILE *const file; +public: ZzipInputStream(const std::shared_ptr _dir, const char *_uri, Mutex &_mutex, Cond &_cond, ZZIP_FILE *_file)