diff options
author | Tim Kientzle <kientzle@gmail.com> | 2011-09-18 17:50:00 -0400 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2011-09-18 17:50:00 -0400 |
commit | 77ae35f31a97e0c5dac569ca544a02fd6f52c064 (patch) | |
tree | f8bd09fd9939e1dd214cf1d6f87e04a8081bd423 /examples/untar.c | |
parent | 5256aa1ab52dc7d213063c36eabd3d8581ef9f10 (diff) | |
download | libarchive-77ae35f31a97e0c5dac569ca544a02fd6f52c064.tar.gz |
Make untar.c build correctly with libarchive 3.0.
SVN-Revision: 3719
Diffstat (limited to 'examples/untar.c')
-rw-r--r-- | examples/untar.c | 4 |
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); |