summaryrefslogtreecommitdiff
path: root/Build/source/libs/zziplib/TLPATCHES/patch-01-binary
blob: 4d528511791f1b335422b79258990f2fbe799249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -ur zziplib-0.13.62.orig/bins/unzzip.c zziplib-0.13.62/bins/unzzip.c
--- zziplib-0.13.62.orig/bins/unzzip.c	2009-08-23 13:38:22.000000000 +0200
+++ zziplib-0.13.62/bins/unzzip.c	2014-07-11 09:50:50.000000000 +0200
@@ -72,7 +72,11 @@
 		continue;
 	    }
 
+#ifdef _WIN32
+	    output = _open (d.d_name, _O_CREAT | _O_BINARY | _O_RDWR);
+#else
 	    output = creat (d.d_name, 0664);
+#endif
 	    if (output == -1)
 	    {
 		fprintf (stderr, "|output file %s: \n", d.d_name);