Skip to content

Commit

Permalink
Add missing ifdef to unbreak build withot lzma
Browse files Browse the repository at this point in the history
Fixes #1461
  • Loading branch information
mmatuska committed Dec 4, 2020
1 parent 0776bfe commit a9c656e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libarchive/archive_read_support_format_zip.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ process_extra(struct archive_read *a, struct archive_entry *entry,
return ARCHIVE_OK;
}

#if HAVE_LZMA_H && HAVE_LIBLZMA
/*
* Auxiliary function to uncompress data chunk from zipx archive
* (zip with lzma compression).
Expand Down Expand Up @@ -971,6 +972,7 @@ zipx_lzma_uncompress_buffer(const char *compressed_buffer,
free(lzma_alone_compressed_buffer);
return status;
}
#endif

/*
* Assumes file pointer is at beginning of local file header.
Expand Down

0 comments on commit a9c656e

Please sign in to comment.