]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build failure without liblzma. A change of r3884 made that.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 30 Nov 2011 03:52:46 +0000 (22:52 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 30 Nov 2011 03:52:46 +0000 (22:52 -0500)
SVN-Revision: 3885

libarchive/archive_read_support_format_7zip.c

index d9a54ac0e7adcf7cd7efdeeb2dceb255036f454d..f367835542c2be7367fbff6dc89e2024f8222bcd 100644 (file)
@@ -321,7 +321,9 @@ static int64_t      skip_stream(struct archive_read *, size_t);
 static int     skip_sfx(struct archive_read *, ssize_t);
 static int     slurp_central_directory(struct archive_read *, struct _7zip *,
                    struct _7z_header_info *);
+#ifdef HAVE_LZMA_H
 static size_t  x86_Convert(unsigned char *, size_t, uint32_t, uint32_t *);
+#endif
 
 
 int
@@ -2852,6 +2854,7 @@ skip_stream(struct archive_read *a, size_t skip_bytes)
        return (skip_bytes);
 }
 
+#ifdef HAVE_LZMA_H
 /*
  * Brought from LZMA SDK.
  *
@@ -2937,4 +2940,4 @@ x86_Convert(unsigned char *data, size_t size, uint32_t ip, uint32_t *state)
                        0 : ((prevMask << ((int)prevPosT - 1)) & 0x7));
        return (bufferPos);
 }
-
+#endif