Skip to content

Commit 55e70fb

Browse files
committed
try set _FILE_OFFSET_BITS=64 for all projects on Windows 1
mingw-w64 13 changed the way stat() is mapped in sys/stat.h. This triggered a `stat()` call made from an unused libpsl API to require the `stat64i32` intrinsic, while previously it mapped to `__imp__stat64`. Reported-by: Mac-Fly Bug: https://curl.se/mail/lib-2025-10/0007.html
1 parent 1b80486 commit 55e70fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,8 @@ build_single_target() {
892892

893893
_CPPFLAGS_GLOBAL+=' -D_FORTIFY_SOURCE=3' # Requires mingw-w64 11.0.0
894894

895+
_CPPFLAGS_GLOBAL+=' -D_FILE_OFFSET_BITS=64'
896+
895897
elif [ "${_OS}" = 'mac' ]; then
896898
if [ "${_HOST}" != "${_OS}" ]; then
897899
_CMAKE_GLOBAL="-DCMAKE_SYSTEM_NAME=Darwin ${_CMAKE_GLOBAL}"

0 commit comments

Comments
 (0)