瀏覽代碼

Handle libarchive API change in archive_read_data_block

The offset argument type depends on the libarchive version.
Brad King 14 年之前
父節點
當前提交
ffdb37a4f7
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/cmSystemTools.cxx

+ 4 - 0
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 (;;)
     {