]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
On Windows platform, we have made own lseek, which cat handle 64 bits offset pointer...
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 18 Nov 2011 06:41:36 +0000 (01:41 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 18 Nov 2011 06:41:36 +0000 (01:41 -0500)
If there is an obvious reason to use off_t defined as 32 bits offset pointer, we can use int64_t
for lseek instead of off_t on Windows.

SVN-Revision: 3805

libarchive/archive_read_open_filename.c

index bb3db4c10728feff37efe2b37e5d900073c10e7e..87e5ae7e9ec5918fea43011a5115468be9fe47a5 100644 (file)
@@ -283,7 +283,12 @@ static int64_t
 file_skip_lseek(struct archive *a, void *client_data, int64_t request)
 {
        struct read_file_data *mine = (struct read_file_data *)client_data;
+#if defined(_WIN32) && !defined(__CYGWIN__)
+       /* We use own 64 bit version of lseek. */
+       int64_t old_offset, new_offset;
+#else
        off_t old_offset, new_offset;
+#endif
 
        /* We use off_t here because lseek() is declared that way. */