Loading libziparchive/zip_archive.cc +2 −2 Original line number Original line Diff line number Diff line Loading @@ -744,7 +744,7 @@ static int32_t UpdateEntryFromDataDescriptor(int fd, // as a side effect of this call. // as a side effect of this call. static inline ssize_t ReadAtOffset(int fd, uint8_t* buf, size_t len, static inline ssize_t ReadAtOffset(int fd, uint8_t* buf, size_t len, off64_t off) { off64_t off) { #ifdef HAVE_PREAD #if !defined(_WIN32) return TEMP_FAILURE_RETRY(pread64(fd, buf, len, off)); return TEMP_FAILURE_RETRY(pread64(fd, buf, len, off)); #else #else // The only supported platform that doesn't support pread at the moment // The only supported platform that doesn't support pread at the moment Loading @@ -756,7 +756,7 @@ static inline ssize_t ReadAtOffset(int fd, uint8_t* buf, size_t len, } } return TEMP_FAILURE_RETRY(read(fd, buf, len)); return TEMP_FAILURE_RETRY(read(fd, buf, len)); #endif // HAVE_PREAD #endif } } static int32_t FindEntry(const ZipArchive* archive, const int ent, static int32_t FindEntry(const ZipArchive* archive, const int ent, Loading Loading
libziparchive/zip_archive.cc +2 −2 Original line number Original line Diff line number Diff line Loading @@ -744,7 +744,7 @@ static int32_t UpdateEntryFromDataDescriptor(int fd, // as a side effect of this call. // as a side effect of this call. static inline ssize_t ReadAtOffset(int fd, uint8_t* buf, size_t len, static inline ssize_t ReadAtOffset(int fd, uint8_t* buf, size_t len, off64_t off) { off64_t off) { #ifdef HAVE_PREAD #if !defined(_WIN32) return TEMP_FAILURE_RETRY(pread64(fd, buf, len, off)); return TEMP_FAILURE_RETRY(pread64(fd, buf, len, off)); #else #else // The only supported platform that doesn't support pread at the moment // The only supported platform that doesn't support pread at the moment Loading @@ -756,7 +756,7 @@ static inline ssize_t ReadAtOffset(int fd, uint8_t* buf, size_t len, } } return TEMP_FAILURE_RETRY(read(fd, buf, len)); return TEMP_FAILURE_RETRY(read(fd, buf, len)); #endif // HAVE_PREAD #endif } } static int32_t FindEntry(const ZipArchive* archive, const int ent, static int32_t FindEntry(const ZipArchive* archive, const int ent, Loading