From: Michihiro NAKAJIMA Date: Fri, 18 Nov 2011 06:41:36 +0000 (-0500) Subject: On Windows platform, we have made own lseek, which cat handle 64 bits offset pointer... X-Git-Tag: v3.0.1b~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04ad5ee9b219a834f56e394ff724143cc2df9fa5;p=thirdparty%2Flibarchive.git On Windows platform, we have made own lseek, which cat handle 64 bits offset pointer, and use it. 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 --- diff --git a/libarchive/archive_read_open_filename.c b/libarchive/archive_read_open_filename.c index bb3db4c10..87e5ae7e9 100644 --- a/libarchive/archive_read_open_filename.c +++ b/libarchive/archive_read_open_filename.c @@ -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. */