summaryrefslogtreecommitdiff
path: root/libarchive/archive_util.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2014-08-14 08:31:49 +0900
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2014-08-14 08:31:49 +0900
commit8c4be28fe717b20c772ee4cb6d4cc77fb98e27aa (patch)
tree1021c0fb90c5bc504d3118e4dfec4eb15631d49f /libarchive/archive_util.c
parent7b759a662c5816273691e594d2281686139fad1d (diff)
downloadlibarchive-8c4be28fe717b20c772ee4cb6d4cc77fb98e27aa.tar.gz
Add support for lz4 write filter.
Diffstat (limited to 'libarchive/archive_util.c')
-rw-r--r--libarchive/archive_util.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c
index 643eef87..1b685d10 100644
--- a/libarchive/archive_util.c
+++ b/libarchive/archive_util.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2009-2012 Michihiro NAKAJIMA
+ * Copyright (c) 2009-2012,2014 Michihiro NAKAJIMA
* Copyright (c) 2003-2007 Tim Kientzle
* All rights reserved.
*
@@ -54,6 +54,9 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_util.c 201098 2009-12-28 02:58:1
#ifdef HAVE_BZLIB_H
#include <bzlib.h>
#endif
+#ifdef HAVE_LZ4_H
+#include <lz4.h>
+#endif
#include "archive.h"
#include "archive_private.h"
@@ -113,7 +116,11 @@ archive_version_details(void)
archive_strncat(&str, p, sep - p);
}
#endif
- }
+#if defined(HAVE_LZ4_H) && defined(HAVE_LIBLZ4)
+ archive_string_sprintf(&str, " liblz4/%d.%d.%d",
+ LZ4_VERSION_MAJOR, LZ4_VERSION_MINOR, LZ4_VERSION_RELEASE);
+#endif
+ }
return str.s;
}