Reported by John Donoghue <john.david.donoghue@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
* lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
off_t on mingw, invoke _lseeki64 instead of lseek.
+2020-01-25 Bruno Haible <bruno@clisp.org>
+
+ lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
+ Reported by John Donoghue <john.david.donoghue@gmail.com> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
+ * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
+ off_t on mingw, invoke _lseeki64 instead of lseek.
+
2020-01-25 Bruno Haible <bruno@clisp.org>
iswdigit tests: Avoid test failure on Cygwin.
return -1;
}
#endif
-#if _GL_WINDOWS_64_BIT_OFF_T
+#if _GL_WINDOWS_64_BIT_OFF_T || (defined __MINGW32__ && defined _FILE_OFFSET_BITS && (_FILE_OFFSET_BITS == 64))
return _lseeki64 (fd, offset, whence);
#else
return lseek (fd, offset, whence);