summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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);