From ffdb37a4f7321a7be1948c0b47fb80d448da97f5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 20 Dec 2011 13:16:45 -0500 Subject: [PATCH] Handle libarchive API change in archive_read_data_block The offset argument type depends on the libarchive version. --- Source/cmSystemTools.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 8eec1e2af..02060ca48 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1866,7 +1866,11 @@ long copy_data(struct archive *ar, struct archive *aw) long r; const void *buff; size_t size; +#if defined(ARCHIVE_VERSION_NUMBER) && ARCHIVE_VERSION_NUMBER >= 3000000 + __LA_INT64_T offset; +#else off_t offset; +#endif for (;;) {