aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-05-27 15:23:31 +0100
committerRon Yorston <rmy@pobox.com>2015-05-27 15:30:36 +0100
commit316ecf214a051121516730f794721f5e7b3036ac (patch)
tree3002051097aebc579cfe3a2e008ff43fe100c1c9 /include
parent8a61b67d502ed4fbd5f480ca9458884b55ce7a95 (diff)
downloadbusybox-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 'include')
-rw-r--r--include/bb_archive.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bb_archive.h b/include/bb_archive.h
index 5d9e24c17..d94169627 100644
--- a/include/bb_archive.h
+++ b/include/bb_archive.h
@@ -2,6 +2,16 @@
2#ifndef UNARCHIVE_H 2#ifndef UNARCHIVE_H
3#define UNARCHIVE_H 1 3#define UNARCHIVE_H 1
4 4
5#if !defined(BB_ARCHIVE_PUBLIC) && ENABLE_PLATFORM_MINGW32
6/* treat mingw as a non-MMU platform */
7#undef BB_MMU
8#undef USE_FOR_NOMMU
9#undef USE_FOR_MMU
10#define BB_MMU 0
11#define USE_FOR_NOMMU(...) __VA_ARGS__
12#define USE_FOR_MMU(...)
13#endif
14
5PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN 15PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
6 16
7enum { 17enum {