From 316ecf214a051121516730f794721f5e7b3036ac Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 27 May 2015 15:23:31 +0100 Subject: 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 --- libbb/appletlib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libbb') 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; #if ENABLE_FEATURE_COMPRESS_USAGE static const char packed_usage[] ALIGN1 = { PACKED_USAGE }; +#define BB_ARCHIVE_PUBLIC # include "bb_archive.h" static const char *unpack_usage_messages(void) { -- cgit v1.2.3-55-g6feb