gzip: Add patch to disable broken FILE fields

This commit is contained in:
Fredrik Fornwall 2019-01-03 02:32:39 +01:00
parent 2e7188b0ec
commit 4a35b54bb6
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -u -r ../gzip-1.10/lib/stdio-impl.h ./lib/stdio-impl.h
--- ../gzip-1.10/lib/stdio-impl.h 2018-06-25 04:09:24.000000000 +0000
+++ ./lib/stdio-impl.h 2019-01-03 00:28:58.881820632 +0000
@@ -60,7 +60,7 @@
# define _flags pub._flags
# define _r pub._r
# define _w pub._w
-# elif defined __ANDROID__ /* Android */
+# elif defined __ANDROID_BUT_THIS_IS_BROKEN__ /* Android */
/* Up to this commit from 2015-10-12
<https://android.googlesource.com/platform/bionic.git/+/f0141dfab10a4b332769d52fa76631a64741297a>
the innards of FILE were public, and fp_ub could be defined like for OpenBSD,