From 10932722619696f1e089723c2dccf51281f24a40 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 20 Feb 2024 14:37:58 +0100 Subject: Fix build on Centos 7. --- wscript | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 4c40e34b1..a62b5c2c3 100644 --- a/wscript +++ b/wscript @@ -281,6 +281,15 @@ def configure(conf): uselib="ZIP", define_name='DCPOMATIC_HAVE_ZIP_FILE_ADD' ) + conf.check_cxx(fragment=""" + #include + int main() { int error; zip_open("foo", ZIP_RDONLY, &error); } + """, + mandatory=False, + msg="Checking for ZIP_RDONLY", + uselib="ZIP", + define_name='DCPOMATIC_HAVE_ZIP_RDONLY' + ) # libbz2; must be explicitly linked on macOS for some reason conf.check_cxx(fragment=""" -- cgit v1.2.3