]> 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:32:48 +0000 (04:32 +0900)
libarchive/archive_write_set_format_7zip.c

index cbf14a79a3601af6405c9e5a99b9abe95056a93d..80b8581aef963d3a3c0e482fb3bf2fc0c2eef572 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)