summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-20 14:37:58 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-20 14:37:58 +0100
commit10932722619696f1e089723c2dccf51281f24a40 (patch)
tree1df49c2ba189212f21dd1432f479f6aa494a16a4 /src/lib
parentf23b9491dcd25d02f7966f39dfdbb0ad998aa5ad (diff)
Fix build on Centos 7.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/unzipper.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/unzipper.cc b/src/lib/unzipper.cc
index 2add8f2a9..f0170e7e0 100644
--- a/src/lib/unzipper.cc
+++ b/src/lib/unzipper.cc
@@ -39,7 +39,11 @@ using std::string;
Unzipper::Unzipper(boost::filesystem::path file)
{
int error;
+#ifdef DCPOMATIC_HAVE_ZIP_RDONLY
_zip = zip_open(dcp::filesystem::fix_long_path(file).string().c_str(), ZIP_RDONLY, &error);
+#else
+ _zip = zip_open(dcp::filesystem::fix_long_path(file).string().c_str(), 0, &error);
+#endif
if (!_zip) {
throw FileError("could not open ZIP file", file);
}