]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
examples: use 64-bit `fstat` on Windows
authorViktor Szakats <commit@vsz.me>
Tue, 9 Dec 2025 11:55:26 +0000 (12:55 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 9 Dec 2025 12:38:17 +0000 (13:38 +0100)
Closes #19896

docs/examples/anyauthput.c
docs/examples/fileupload.c
docs/examples/ftpupload.c
docs/examples/http2-upload.c
docs/examples/httpput.c

index 5a650b64c7212579d68fa2d1a35957a579d68d2d..a8f179e8e75d3dcc08b761eed39e887ac2b85e6d 100644 (file)
@@ -41,9 +41,9 @@
 
 #ifdef _WIN32
 #undef stat
-#define stat _stat
+#define stat _stati64
 #undef fstat
-#define fstat _fstat
+#define fstat _fstati64
 #define fileno _fileno
 #endif
 
index da69e4a8ead1591a4dc2b42ab733a6fe5a5f8ac9..4639b6b12f3e49f6115263a2841e0b7d3fdccd2c 100644 (file)
@@ -39,9 +39,9 @@
 
 #ifdef _WIN32
 #undef stat
-#define stat _stat
+#define stat _stati64
 #undef fstat
-#define fstat _fstat
+#define fstat _fstati64
 #define fileno _fileno
 #endif
 
index 48c76a4898a74ca24df2c489b500180094d2cb66..36663d5afb3136da14175c80985bd253c455bf03 100644 (file)
@@ -44,9 +44,9 @@
 #ifdef _WIN32
 #include <io.h>
 #undef stat
-#define stat _stat
+#define stat _stati64
 #undef fstat
-#define fstat _fstat
+#define fstat _fstati64
 #define fileno _fileno
 #else
 #include <unistd.h>
index 0f1ed748ca1dc4d2b16cb985fc54000169e8977c..8ed6568542a1f9eb435d6393b3852e01107226ae 100644 (file)
@@ -56,9 +56,9 @@
 
 #ifdef _WIN32
 #undef stat
-#define stat _stat
+#define stat _stati64
 #undef fstat
-#define fstat _fstat
+#define fstat _fstati64
 #define fileno _fileno
 #endif
 
index 026fde1210eaef2f25b69398942db5ab60efb48f..8892d76f077a1c06057572bf434f37930d8a39f0 100644 (file)
@@ -39,9 +39,9 @@
 
 #ifdef _WIN32
 #undef stat
-#define stat _stat
+#define stat _stati64
 #undef fstat
-#define fstat _fstat
+#define fstat _fstati64
 #define fileno _fileno
 #endif