summarylogtreecommitdiffstats
path: root/zlib-1.2.7.patch
diff options
context:
space:
mode:
authorKevin MacMartin2015-06-10 00:37:50 -0400
committerKevin MacMartin2015-06-10 00:37:50 -0400
commit8fc59b245bfdc2e0ec461ca4789a619ff61fc458 (patch)
tree5d4a85960eec0b9681caf5168a64b2a1d79f310c /zlib-1.2.7.patch
downloadaur-8fc59b245bfdc2e0ec461ca4789a619ff61fc458.tar.gz
Initial import into AUR 4
Diffstat (limited to 'zlib-1.2.7.patch')
-rw-r--r--zlib-1.2.7.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/zlib-1.2.7.patch b/zlib-1.2.7.patch
new file mode 100644
index 00000000000..75c535668f4
--- /dev/null
+++ b/zlib-1.2.7.patch
@@ -0,0 +1,40 @@
+diff --git a/src/zfile.c b/src/zfile.c
+index 660f19b..abc5f94 100644
+--- a/src/zfile.c
++++ b/src/zfile.c
+@@ -201,10 +201,10 @@ static char *try_uncompress_with_gzip(const char *name)
+ do {
+ char buf[256];
+
+- len = gzread(fdsrc, (void *)buf, 256);
++ len = gzread((gzFile)fdsrc, (void *)buf, 256);
+ if (len > 0) {
+ if (fwrite((void *)buf, 1, (size_t)len, fddest) < len) {
+- gzclose(fdsrc);
++ gzclose((gzFile)fdsrc);
+ fclose(fddest);
+ ioutil_remove(tmp_name);
+ lib_free(tmp_name);
+@@ -213,7 +213,7 @@ static char *try_uncompress_with_gzip(const char *name)
+ }
+ } while (len > 0);
+
+- gzclose(fdsrc);
++ gzclose((gzFile)fdsrc);
+ fclose(fddest);
+
+ return tmp_name;
+@@ -810,11 +810,11 @@ static int compress_with_gzip(const char *src, const char *dest)
+ char buf[256];
+ len = fread((void *)buf, 256, 1, fdsrc);
+ if (len > 0) {
+- gzwrite(fddest, (void *)buf, (unsigned int)len);
++ gzwrite((gzFile)fddest, (void *)buf, (unsigned int)len);
+ }
+ } while (len > 0);
+
+- gzclose(fddest);
++ gzclose((gzFile)fddest);
+ fclose(fdsrc);
+
+ archdep_file_set_gzip(dest);