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 /libbb/appletlib.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 'libbb/appletlib.c')
-rw-r--r-- | libbb/appletlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 683d10b20..841494a70 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -62,6 +62,7 @@ static const char usage_messages[] ALIGN1 = UNPACKED_USAGE; | |||
62 | #if ENABLE_FEATURE_COMPRESS_USAGE | 62 | #if ENABLE_FEATURE_COMPRESS_USAGE |
63 | 63 | ||
64 | static const char packed_usage[] ALIGN1 = { PACKED_USAGE }; | 64 | static const char packed_usage[] ALIGN1 = { PACKED_USAGE }; |
65 | #define BB_ARCHIVE_PUBLIC | ||
65 | # include "bb_archive.h" | 66 | # include "bb_archive.h" |
66 | static const char *unpack_usage_messages(void) | 67 | static const char *unpack_usage_messages(void) |
67 | { | 68 | { |