summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_data_into_fd.c
diff options
context:
space:
mode:
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>2010-02-24 03:22:26 -0500
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>2010-02-24 03:22:26 -0500
commitf40faa6edb2c38e90bedd36148e6828806fa31b4 (patch)
treec62dc36f56fb25371ec1e402278354ea1aee4809 /libarchive/archive_read_data_into_fd.c
parent96b3cfd3fe092413846ae649e4a8f47c4dcb1b73 (diff)
downloadlibarchive-f40faa6edb2c38e90bedd36148e6828806fa31b4.tar.gz
Unbreak build on mingw.
SVN-Revision: 1971
Diffstat (limited to 'libarchive/archive_read_data_into_fd.c')
-rw-r--r--libarchive/archive_read_data_into_fd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libarchive/archive_read_data_into_fd.c b/libarchive/archive_read_data_into_fd.c
index 3aeef3bc..1ede6c61 100644
--- a/libarchive/archive_read_data_into_fd.c
+++ b/libarchive/archive_read_data_into_fd.c
@@ -52,7 +52,11 @@ archive_read_data_into_fd(struct archive *a, int fd)
const void *buff;
size_t size, bytes_to_write;
ssize_t bytes_written, total_written;
+#if ARCHIVE_VERSION_NUMBER < 3000000
off_t offset;
+#else
+ int64_t offset;
+#endif
off_t output_offset;
__archive_check_magic(a, ARCHIVE_READ_MAGIC, ARCHIVE_STATE_DATA, "archive_read_data_into_fd");