ソースを参照

cmArchiveWrite: Preemptively adapt to future libarchive 4.0 changes

Brad King 10 年 前
コミット
87f1f363df
1 ファイル変更4 行追加0 行削除
  1. 4 0
      Source/cmArchiveWrite.cxx

+ 4 - 0
Source/cmArchiveWrite.cxx

@@ -18,6 +18,10 @@
 #include <cm_libarchive.h>
 #include "cm_get_date.h"
 
+#ifndef __LA_SSIZE_T
+# define __LA_SSIZE_T la_ssize_t
+#endif
+
 //----------------------------------------------------------------------------
 static std::string cm_archive_error_string(struct archive* a)
 {