From: Viktor Szakats Date: Tue, 26 Sep 2023 09:55:33 +0000 (+0000) Subject: cmake: assume `_fseeki64` and no `fseeko` on Windows X-Git-Tag: curl-8_4_0~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e74c0729d0cace00a202fc6c33c1b35703e220a;p=thirdparty%2Fcurl.git cmake: assume `_fseeki64` and no `fseeko` on Windows `_fseeki64` is present in mingw-w64 1.0 (2011-09-26) headers, and at least Watcom C 1.9 (2010) headers and MSVS 2008 [1]. `fseeko` is not present in any of these. (mingw-w64 1.0 also offers `fseeko64`.) [1] https://github.com/curl/curl/pull/11944#issuecomment-1734995004 Follow-up to 9c7165e96a3a9a2d0b7059c87c699b5ca8cdae93 #11918 Closes #11950 --- diff --git a/CMake/Platforms/WindowsCache.cmake b/CMake/Platforms/WindowsCache.cmake index 6451383516..a8e66e2fbe 100644 --- a/CMake/Platforms/WindowsCache.cmake +++ b/CMake/Platforms/WindowsCache.cmake @@ -81,6 +81,8 @@ if(NOT UNIX) set(HAVE_TERMIO_H 0) set(HAVE_UTIME_H 0) + set(HAVE_FSEEKO 0) + set(HAVE__FSEEKI64 1) set(HAVE_SOCKET 1) set(HAVE_SELECT 1) set(HAVE_STRDUP 1)