]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build error with liblzma on MSVC.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 4 May 2010 09:54:05 +0000 (05:54 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 4 May 2010 09:54:05 +0000 (05:54 -0400)
SVN-Revision: 2365

libarchive/archive_write_add_filter_xz.c

index 83cdb63572d43ca1634d875062caacc5f7dbb5e7..d9bea6a3f93155b5bebe7fb07f0ec2a2614f55ed 100644 (file)
@@ -165,9 +165,10 @@ static int
 archive_compressor_xz_init_stream(struct archive_write_filter *f,
     struct private_data *data)
 {
+       static const lzma_stream lzma_stram_init = LZMA_STREAM_INIT;
        int ret;
 
-       data->stream = (lzma_stream)LZMA_STREAM_INIT;
+       data->stream = lzma_stram_init;
        data->stream.next_out = data->compressed;
        data->stream.avail_out = data->compressed_buffer_size;
        if (f->code == ARCHIVE_COMPRESSION_XZ)