summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-12-20 18:16:45 (GMT)
committerBrad King <brad.king@kitware.com>2011-12-22 15:52:03 (GMT)
commitffdb37a4f7321a7be1948c0b47fb80d448da97f5 (patch)
treef850ee6b3eb81142a8fe89739f805cb8fe87a6d2 /Source
parentffa6faa40d6320bb5d0962f069c7ff1042d75363 (diff)
downloadCMake-ffdb37a4f7321a7be1948c0b47fb80d448da97f5.zip
CMake-ffdb37a4f7321a7be1948c0b47fb80d448da97f5.tar.gz
CMake-ffdb37a4f7321a7be1948c0b47fb80d448da97f5.tar.bz2
Handle libarchive API change in archive_read_data_block
The offset argument type depends on the libarchive version.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 8eec1e2..02060ca 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 (;;)
{