aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-05-10 20:10:13 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-05-10 20:10:13 +1000
commitd2a9ddeb6cc58284996fbc5367877c99fee8914e (patch)
tree187cadb382d0336bbc529cc7ca9e3d1ccd680213 /archival
parent1fa419fb3c7ef91e878398bb0388854d27d7bd8f (diff)
downloadbusybox-w32-old.tar.gz
busybox-w32-old.tar.bz2
busybox-w32-old.zip
general warning cleanupold
Diffstat (limited to 'archival')
-rw-r--r--archival/Config.in14
-rw-r--r--archival/gzip.c6
2 files changed, 13 insertions, 7 deletions
diff --git a/archival/Config.in b/archival/Config.in
index f21509271..22f985ac0 100644
--- a/archival/Config.in
+++ b/archival/Config.in
@@ -154,7 +154,7 @@ config FEATURE_TAR_CREATE
154config FEATURE_TAR_BZIP2 154config FEATURE_TAR_BZIP2
155 bool "Enable -j option to handle .tar.bz2 files" 155 bool "Enable -j option to handle .tar.bz2 files"
156 default n 156 default n
157 depends on TAR 157 depends on TAR && !MINGW32 # open_transformer.c
158 help 158 help
159 If you enable this option you'll be able to extract 159 If you enable this option you'll be able to extract
160 archives compressed with bzip2. 160 archives compressed with bzip2.
@@ -162,7 +162,7 @@ config FEATURE_TAR_BZIP2
162config FEATURE_TAR_LZMA 162config FEATURE_TAR_LZMA
163 bool "Enable -a option to handle .tar.lzma files" 163 bool "Enable -a option to handle .tar.lzma files"
164 default n 164 default n
165 depends on TAR 165 depends on TAR && !MINGW32 # open_transformer.c
166 help 166 help
167 If you enable this option you'll be able to extract 167 If you enable this option you'll be able to extract
168 archives compressed with lzma. 168 archives compressed with lzma.
@@ -178,7 +178,7 @@ config FEATURE_TAR_FROM
178config FEATURE_TAR_GZIP 178config FEATURE_TAR_GZIP
179 bool "Enable -z option" 179 bool "Enable -z option"
180 default y 180 default y
181 depends on TAR 181 depends on TAR && !MINGW32 # open_transformer.c
182 help 182 help
183 If you enable this option tar will be able to call gzip, 183 If you enable this option tar will be able to call gzip,
184 when creating or extracting tar gziped archives. 184 when creating or extracting tar gziped archives.
@@ -186,7 +186,7 @@ config FEATURE_TAR_GZIP
186config FEATURE_TAR_COMPRESS 186config FEATURE_TAR_COMPRESS
187 bool "Enable -Z option" 187 bool "Enable -Z option"
188 default n 188 default n
189 depends on TAR 189 depends on TAR && !MINGW32 # open_transformer.c
190 help 190 help
191 If you enable this option tar will be able to call uncompress, 191 If you enable this option tar will be able to call uncompress,
192 when extracting .tar.Z archives. 192 when extracting .tar.Z archives.
@@ -271,7 +271,7 @@ comment "Common options for dpkg and dpkg_deb"
271config FEATURE_DEB_TAR_GZ 271config FEATURE_DEB_TAR_GZ
272 bool "gzip debian packages (normal)" 272 bool "gzip debian packages (normal)"
273 default y if DPKG || DPKG_DEB 273 default y if DPKG || DPKG_DEB
274 depends on DPKG || DPKG_DEB 274 depends on (DPKG || DPKG_DEB) && !MINGW32 # open_transformer.c
275 help 275 help
276 This is the default compression method inside the debian ar file. 276 This is the default compression method inside the debian ar file.
277 277
@@ -280,7 +280,7 @@ config FEATURE_DEB_TAR_GZ
280config FEATURE_DEB_TAR_BZ2 280config FEATURE_DEB_TAR_BZ2
281 bool "bzip2 debian packages" 281 bool "bzip2 debian packages"
282 default n 282 default n
283 depends on DPKG || DPKG_DEB 283 depends on (DPKG || DPKG_DEB) && !MINGW32 # open_transformer.c
284 help 284 help
285 This allows dpkg and dpkg-deb to extract deb's that are compressed internally 285 This allows dpkg and dpkg-deb to extract deb's that are compressed internally
286 with bzip2 instead of gzip. 286 with bzip2 instead of gzip.
@@ -291,7 +291,7 @@ config FEATURE_DEB_TAR_BZ2
291config FEATURE_DEB_TAR_LZMA 291config FEATURE_DEB_TAR_LZMA
292 bool "lzma debian packages" 292 bool "lzma debian packages"
293 default n 293 default n
294 depends on DPKG || DPKG_DEB 294 depends on (DPKG || DPKG_DEB) && !MINGW32 # open_transformer.c
295 help 295 help
296 This allows dpkg and dpkg-deb to extract deb's that are compressed 296 This allows dpkg and dpkg-deb to extract deb's that are compressed
297 internally with lzma instead of gzip. 297 internally with lzma instead of gzip.
diff --git a/archival/gzip.c b/archival/gzip.c
index fdf2a794c..14d1ef2b0 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -1589,6 +1589,9 @@ static void compress_block(ct_data * ltree, ct_data * dtree)
1589 * trees or store, and output the encoded block to the zip file. This function 1589 * trees or store, and output the encoded block to the zip file. This function
1590 * returns the total compressed length for the file so far. 1590 * returns the total compressed length for the file so far.
1591 */ 1591 */
1592#ifdef __MINGW32__
1593#define eof eof_
1594#endif
1592static ulg flush_block(char *buf, ulg stored_len, int eof) 1595static ulg flush_block(char *buf, ulg stored_len, int eof)
1593{ 1596{
1594 ulg opt_lenb, static_lenb; /* opt_len and static_len in bytes */ 1597 ulg opt_lenb, static_lenb; /* opt_len and static_len in bytes */
@@ -1672,6 +1675,9 @@ static ulg flush_block(char *buf, ulg stored_len, int eof)
1672 1675
1673 return G2.compressed_len >> 3; 1676 return G2.compressed_len >> 3;
1674} 1677}
1678#ifdef __MINGW32__
1679#undef eof
1680#endif
1675 1681
1676 1682
1677/* =========================================================================== 1683/* ===========================================================================