summarylogtreecommitdiffstats
path: root/fix-zlib.patch
blob: 2b3d7984ff675bb4ba7baf815baa6e1220622a9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/src/resourcewrap.hpp
+++ b/src/resourcewrap.hpp
@@ -67,7 +67,7 @@
 }
 
 namespace zip {
-typedef ResourceWrapper<void, void, int, gzclose> gzFile;
+	typedef ResourceWrapper<struct gzFile_s, struct gzFile_s , int, gzclose> gzFileWrapper;
 }
 
 #endif//!_RESOURCE_HPP_
--- a/src/libcommon.cpp
+++ b/src/libcommon.cpp
@@ -190,7 +190,7 @@
 
 int unpack_zlib(const char* arch_file_name, const char* out_file_name, print_info_t print_info)
 {
-	zip::gzFile in(gzopen(arch_file_name, "rb"));
+	zip::gzFileWrapper in(gzopen(arch_file_name, "rb"));
 	if(!in) {
 		print_info("Unable to open archive file %s\n", arch_file_name);
 		return EXIT_FAILURE;