diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-25 08:58:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-25 08:58:34 +0000 |
commit | f069afd000e26b5a1e2e10bd3e97658b1da5220c (patch) | |
tree | f20d3faed2d8313c212377c21cb500a817ecb4d8 | |
parent | dfcfb9b91ebc5772b39aff76e40a1ade47b4b604 (diff) | |
download | libextractor-f069afd000e26b5a1e2e10bd3e97658b1da5220c.tar.gz libextractor-f069afd000e26b5a1e2e10bd3e97658b1da5220c.zip |
make work with older libarchive versions
-rw-r--r-- | src/plugins/archive_extractor.c | 12 |
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 |