summaryrefslogtreecommitdiff
path: root/libarchive/archive_write_add_filter_bzip2.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2010-06-19 09:02:48 -0400
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2010-06-19 09:02:48 -0400
commit3a5fce69270874ae88186087da199a3d0d70542d (patch)
tree5db29c6870d44fe8fdb455c8867ae8b7bf06a47d /libarchive/archive_write_add_filter_bzip2.c
parentb8ad1655a977a9f2617306bbcc1118b76b2261d3 (diff)
downloadlibarchive-3a5fce69270874ae88186087da199a3d0d70542d.tar.gz
Deal with bzip2 before 1.0 by not using it.
SVN-Revision: 2488
Diffstat (limited to 'libarchive/archive_write_add_filter_bzip2.c')
-rw-r--r--libarchive/archive_write_add_filter_bzip2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/archive_write_add_filter_bzip2.c b/libarchive/archive_write_add_filter_bzip2.c
index 35d29b95..85a84922 100644
--- a/libarchive/archive_write_add_filter_bzip2.c
+++ b/libarchive/archive_write_add_filter_bzip2.c
@@ -54,7 +54,7 @@ archive_write_set_compression_bzip2(struct archive *a)
}
#endif
-#ifndef HAVE_BZLIB_H
+#if !defined(HAVE_BZLIB_H) || !defined(BZ_CONFIG_ERROR)
int
archive_write_add_filter_bzip2(struct archive *a)
{
@@ -341,4 +341,4 @@ drive_compressor(struct archive_write_filter *f,
}
}
-#endif /* HAVE_BZLIB_H */
+#endif /* HAVE_BZLIB_H && BZ_CONFIG_ERROR */