]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
We cannot get proper an xml output from an earlier version of libxml.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 14 Sep 2011 09:34:26 +0000 (05:34 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 14 Sep 2011 09:34:26 +0000 (05:34 -0400)
There may be a way to work around it, but right now I cannot find out how to.
I have to, therefore, disable the xar writer if libxlm version is less than 2.7.3,
which version Mac Snow Leopard has.

SVN-Revision: 3711

libarchive/archive_write_set_format_xar.c

index 8079e8dcf29847ee079c1b54cfa2e04a5a3a6852..bdf10612938b407db886d0dc009c57d72c5fe06a 100644 (file)
@@ -79,7 +79,8 @@ __FBSDID("$FreeBSD$");
  *
  */
 
-#if !defined(HAVE_LIBXML_XMLWRITER_H) ||\
+#if !(defined(HAVE_LIBXML_XMLWRITER_H) && defined(LIBXML_VERSION) &&\
+       LIBXML_VERSION >= 20703) ||\
        !defined(HAVE_ZLIB_H) || \
        !defined(ARCHIVE_HAS_MD5) || !defined(ARCHIVE_HAS_SHA1)
 /*