Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]>
---
archival/gzip.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/archival/gzip.c b/archival/gzip.c
index a327d54..effee7f 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -1577,6 +1577,9 @@ static void compress_block(ct_data * ltree, ct_data * dtree)
* trees or store, and output the encoded block to the zip file. This function
* returns the total compressed length for the file so far.
*/
+#ifdef __MINGW32__
+#define eof eof_
+#endif
static ulg flush_block(char *buf, ulg stored_len, int eof)
{
ulg opt_lenb, static_lenb; /* opt_len and static_len in bytes */
@@ -1660,6 +1663,9 @@ static ulg flush_block(char *buf, ulg stored_len, int eof)
return G2.compressed_len >> 3;
}
+#ifdef __MINGW32__
+#undef eof
+#endif
/* ===========================================================================
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox