]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build on Solaris-based systems
authorMartin Matuska <martin@matuska.org>
Mon, 2 Jan 2017 15:51:00 +0000 (16:51 +0100)
committerMartin Matuska <martin@matuska.org>
Mon, 2 Jan 2017 15:51:00 +0000 (16:51 +0100)
libarchive/archive_write_add_filter_xz.c
libarchive/archive_write_set_format_xar.c
libarchive/xxhash.c

index 46a6c38aa6e1a96e0af9812fc36cfe1fc834a2eb..b0f25a6ef0ed837243023f2f2518d49ff8ded6ae 100644 (file)
@@ -233,7 +233,7 @@ archive_compressor_xz_init_stream(struct archive_write_filter *f,
        if (f->code == ARCHIVE_FILTER_XZ) {
 #ifdef HAVE_LZMA_STREAM_ENCODER_MT
                if (data->threads != 1) {
-                       bzero(&mt_options, sizeof(mt_options));
+                       memset(&mt_options, 0, sizeof(mt_options));
                        mt_options.threads = data->threads;
                        mt_options.timeout = 300;
                        mt_options.filters = data->lzmafilters;
index ef9ad96ad51f758950e686fd035ba6a93966a092..c9f5ac23958238d9ae2565378a0fd8cc3b9b2238 100644 (file)
@@ -2913,7 +2913,7 @@ compression_init_encoder_xz(struct archive *a,
        *strm = lzma_init_data;
 #ifdef HAVE_LZMA_STREAM_ENCODER_MT
        if (threads > 1) {
-               bzero(&mt_options, sizeof(mt_options));
+               memset(&mt_options, 0, sizeof(mt_options));
                mt_options.threads = threads;
                mt_options.timeout = 300;
                mt_options.filters = lzmafilters;
index d7f8e96de6fb2a3c065eac639913286592fed2c8..e266bba48c822aab6f9252392cf75c55d688a401 100644 (file)
@@ -29,10 +29,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 You can contact the author at :
 - xxHash source repository : http://code.google.com/p/xxhash/
 */
+#include "archive_platform.h"
+
 #include <stdlib.h>
 #include <string.h>
 
-#include "archive_platform.h"
 #include "archive_xxhash.h"
 
 #ifdef HAVE_LIBLZ4