From 3647371f9d87dc23d7926a27da5abad0067ed22d Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Thu, 16 Feb 2012 04:27:43 +0900 Subject: [PATCH] Fix issue 242:libarchive-3.0.3 fails to build with --without-zlib --- libarchive/archive_write_set_format_7zip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libarchive/archive_write_set_format_7zip.c b/libarchive/archive_write_set_format_7zip.c index cbf14a79a..80b8581ae 100644 --- a/libarchive/archive_write_set_format_7zip.c +++ b/libarchive/archive_write_set_format_7zip.c @@ -1590,7 +1590,8 @@ file_init_register_empty(struct _7zip *zip) zip->empty_list.last = &(zip->empty_list.first); } -#if !defined(HAVE_BZLIB_H) || !defined(BZ_CONFIG_ERROR) || !defined(HAVE_LZMA_H) +#if !defined(HAVE_ZLIB_H) || !defined(HAVE_BZLIB_H) ||\ + !defined(BZ_CONFIG_ERROR) || !defined(HAVE_LZMA_H) static int compression_unsupported_encoder(struct archive *a, struct la_zstream *lastrm, const char *name) -- 2.47.3