diff options
author | Ron Yorston <rmy@pobox.com> | 2015-05-27 15:23:31 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-05-27 15:30:36 +0100 |
commit | 316ecf214a051121516730f794721f5e7b3036ac (patch) | |
tree | 3002051097aebc579cfe3a2e008ff43fe100c1c9 /miscutils/bbconfig.c | |
parent | 8a61b67d502ed4fbd5f480ca9458884b55ce7a95 (diff) | |
download | busybox-w32-316ecf214a051121516730f794721f5e7b3036ac.tar.gz busybox-w32-316ecf214a051121516730f794721f5e7b3036ac.tar.bz2 busybox-w32-316ecf214a051121516730f794721f5e7b3036ac.zip |
Enable seamless compression for WIN32
In the archival code we pretend that WIN32 is a no-MMU platform and
use the new mingw_popen_fd routine to pipe data to/from commands
to compress/decompress.
The pretence is maintained by redefining MMU macros in bb_archive.h.
This is mostly used in the archival code but there are a handful
of places where it's used to access public interfaces. The symbol
BB_ARCHIVE_PUBLIC is defined in these places.
With these changes:
tar supports seamless compression/decompression
rpm2cpio and dpkg-deb can be enabled
Diffstat (limited to 'miscutils/bbconfig.c')
-rw-r--r-- | miscutils/bbconfig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/miscutils/bbconfig.c b/miscutils/bbconfig.c index e5f4eb379..b252779f5 100644 --- a/miscutils/bbconfig.c +++ b/miscutils/bbconfig.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | #include "bbconfigopts.h" | 11 | #include "bbconfigopts.h" |
12 | #if ENABLE_FEATURE_COMPRESS_BBCONFIG | 12 | #if ENABLE_FEATURE_COMPRESS_BBCONFIG |
13 | #define BB_ARCHIVE_PUBLIC | ||
13 | # include "bb_archive.h" | 14 | # include "bb_archive.h" |
14 | # include "bbconfigopts_bz2.h" | 15 | # include "bbconfigopts_bz2.h" |
15 | #endif | 16 | #endif |