aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-25 08:58:34 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-25 08:58:34 +0000
commitf069afd000e26b5a1e2e10bd3e97658b1da5220c (patch)
treef20d3faed2d8313c212377c21cb500a817ecb4d8
parentdfcfb9b91ebc5772b39aff76e40a1ade47b4b604 (diff)
downloadlibextractor-f069afd000e26b5a1e2e10bd3e97658b1da5220c.tar.gz
libextractor-f069afd000e26b5a1e2e10bd3e97658b1da5220c.zip
make work with older libarchive versions
-rw-r--r--src/plugins/archive_extractor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/archive_extractor.c b/src/plugins/archive_extractor.c
index ef4e7c7..41e8653 100644
--- a/src/plugins/archive_extractor.c
+++ b/src/plugins/archive_extractor.c
@@ -51,6 +51,18 @@ read_cb (struct archive *a,
51 51
52 52
53/** 53/**
54 * Older versions of libarchive do not define __LA_INT64_T.
55 */
56#if ARCHIVE_VERSION_NUMBER < 2000000
57#define __LA_INT64_T size_t
58#else
59#ifndef __LA_INT64_T
60#define __LA_INT64_T int64_t
61#endif
62#endif
63
64
65/**
54 * Callback for libarchive for 'skipping'. 66 * Callback for libarchive for 'skipping'.
55 * 67 *
56 * @param a archive handle 68 * @param a archive handle