← Commit list

e28dc58b65

Viktor Szakats
Viktor Szakats
2025-12-09
SUCCESS Duration: 255s

Subject

examples: use 64-bit `fstat` on Windows

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/examples/anyauthput.c+2 -2
@@ -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
docs/examples/fileupload.c+2 -2
@@ -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
docs/examples/ftpupload.c+2 -2
@@ -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>
docs/examples/http2-upload.c+2 -2
@@ -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
docs/examples/httpput.c+2 -2
@@ -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