]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix issue 242:libarchive-3.0.3 fails to build with --without-zlib
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 15 Feb 2012 19:27:43 +0000 (04:27 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 15 Feb 2012 19:30:37 +0000 (04:30 +0900)
libarchive/archive_write_set_format_7zip.c

index 1f6fa9710d018eced4c9f4a8c4b2c879cc6700ca..f4dbe306df62b1432f0c78f4f7f29bb495418835 100644 (file)
@@ -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)