summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2011-09-18 17:50:00 -0400
committerTim Kientzle <kientzle@gmail.com>2011-09-18 17:50:00 -0400
commit77ae35f31a97e0c5dac569ca544a02fd6f52c064 (patch)
treef8bd09fd9939e1dd214cf1d6f87e04a8081bd423 /examples
parent5256aa1ab52dc7d213063c36eabd3d8581ef9f10 (diff)
downloadlibarchive-77ae35f31a97e0c5dac569ca544a02fd6f52c064.tar.gz
Make untar.c build correctly with libarchive 3.0.
SVN-Revision: 3719
Diffstat (limited to 'examples')
-rw-r--r--examples/untar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/untar.c b/examples/untar.c
index 98338e10..c027f773 100644
--- a/examples/untar.c
+++ b/examples/untar.c
@@ -200,7 +200,11 @@ copy_data(struct archive *ar, struct archive *aw)
int r;
const void *buff;
size_t size;
+#if ARCHIVE_VERSION >= 3000000
+ int64_t offset;
+#else
off_t offset;
+#endif
for (;;) {
r = archive_read_data_block(ar, &buff, &size, &offset);