summaryrefslogtreecommitdiff
path: root/archival/libarchive
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libarchive')
-rw-r--r--archival/libarchive/decompress_gunzip.c3
-rw-r--r--archival/libarchive/open_transformer.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/archival/libarchive/decompress_gunzip.c b/archival/libarchive/decompress_gunzip.c
index 1360abef7..dced609e5 100644
--- a/archival/libarchive/decompress_gunzip.c
+++ b/archival/libarchive/decompress_gunzip.c
@@ -36,6 +36,9 @@
36#include <setjmp.h> 36#include <setjmp.h>
37#include "libbb.h" 37#include "libbb.h"
38#include "bb_archive.h" 38#include "bb_archive.h"
39#if ENABLE_PLATFORM_MINGW32 && __GNUC__
40#pragma pack(2)
41#endif
39 42
40typedef struct huft_t { 43typedef struct huft_t {
41 unsigned char e; /* number of extra bits or operation */ 44 unsigned char e; /* number of extra bits or operation */
diff --git a/archival/libarchive/open_transformer.c b/archival/libarchive/open_transformer.c
index ab6aa3afc..0a8c657b7 100644
--- a/archival/libarchive/open_transformer.c
+++ b/archival/libarchive/open_transformer.c
@@ -68,6 +68,7 @@ ssize_t FAST_FUNC xtransformer_write(transformer_state_t *xstate, const void *bu
68 return nwrote; 68 return nwrote;
69} 69}
70 70
71#if SEAMLESS_COMPRESSION
71void check_errors_in_children(int signo) 72void check_errors_in_children(int signo)
72{ 73{
73 int status; 74 int status;
@@ -155,9 +156,6 @@ void FAST_FUNC fork_transformer(int fd, const char *transform_prog)
155 xmove_fd(fd_pipe.rd, fd); 156 xmove_fd(fd_pipe.rd, fd);
156} 157}
157 158
158
159#if SEAMLESS_COMPRESSION
160
161/* Used by e.g. rpm which gives us a fd without filename, 159/* Used by e.g. rpm which gives us a fd without filename,
162 * thus we can't guess the format from filename's extension. 160 * thus we can't guess the format from filename's extension.
163 */ 161 */