diff --git a/CMake/Platforms/WindowsCache.cmake b/CMake/Platforms/WindowsCache.cmake index 0997ef3e15..077bed228e 100644 --- a/CMake/Platforms/WindowsCache.cmake +++ b/CMake/Platforms/WindowsCache.cmake @@ -148,7 +148,6 @@ set(HAVE_TERMIO_H 0) set(HAVE_LINUX_TCP_H 0) set(HAVE_FSEEKO 0) # mingw-w64 2.0.0 and newer has it -set(HAVE__FSEEKI64 1) set(HAVE_SOCKET 1) set(HAVE_SELECT 1) set(HAVE_STRDUP 1) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dbd2df2ad..b8b80dc7c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1570,7 +1570,6 @@ check_symbol_exists("freeaddrinfo" "${CURL_INCLUDES}" HAVE_FREEADDRINFO) # w check_function_exists("pipe" HAVE_PIPE) check_function_exists("eventfd" HAVE_EVENTFD) check_symbol_exists("ftruncate" "unistd.h" HAVE_FTRUNCATE) -check_function_exists("_fseeki64" HAVE__FSEEKI64) check_symbol_exists("getpeername" "${CURL_INCLUDES}" HAVE_GETPEERNAME) # winsock2.h unistd.h proto/bsdsocket.h check_symbol_exists("getsockname" "${CURL_INCLUDES}" HAVE_GETSOCKNAME) # winsock2.h unistd.h proto/bsdsocket.h check_function_exists("if_nametoindex" HAVE_IF_NAMETOINDEX) # winsock2.h net/if.h diff --git a/configure.ac b/configure.ac index a8bd87e736..99ce9a4ff6 100644 --- a/configure.ac +++ b/configure.ac @@ -4100,7 +4100,6 @@ AC_CHECK_DECLS([getpwuid_r], [], [AC_DEFINE(HAVE_DECL_GETPWUID_R_MISSING, 1, "Se #include ]]) AC_CHECK_FUNCS([\ - _fseeki64 \ eventfd \ fnmatch \ geteuid \ diff --git a/lib/config-win32.h b/lib/config-win32.h index e6abf06215..2daed912d0 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -427,10 +427,6 @@ Vista # endif #endif -#ifdef USE_WIN32_LARGE_FILES -#define HAVE__FSEEKI64 -#endif - /* Define to the size of `off_t', as computed by sizeof. */ #if defined(__MINGW32__) && \ defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64) diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index 7ee0a400f7..1ac59ff057 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -246,9 +246,6 @@ /* Define to 1 if you have the fseeko declaration. */ #cmakedefine HAVE_DECL_FSEEKO 1 -/* Define to 1 if you have the _fseeki64 function. */ -#cmakedefine HAVE__FSEEKI64 1 - /* Define to 1 if you have the ftruncate function. */ #cmakedefine HAVE_FTRUNCATE 1 diff --git a/lib/formdata.c b/lib/formdata.c index cea61b22e1..7ea7a8f396 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -793,7 +793,7 @@ static CURLcode setname(curl_mimepart *part, const char *name, size_t len) /* wrap call to fseeko so it matches the calling convention of callback */ static int fseeko_wrapper(void *stream, curl_off_t offset, int whence) { -#if defined(HAVE__FSEEKI64) +#if defined(_WIN32) && defined(USE_WIN32_LARGE_FILES) return _fseeki64(stream, (__int64)offset, whence); #elif defined(HAVE_FSEEKO) && defined(HAVE_DECL_FSEEKO) return fseeko(stream, (off_t)offset, whence);