]> granicus.if.org Git - curl/commitdiff
Must include <io.h> and <sys/stat.h> before redefining
authorGisle Vanem <gvanem@broadpark.no>
Thu, 16 Dec 2004 21:27:29 +0000 (21:27 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Thu, 16 Dec 2004 21:27:29 +0000 (21:27 +0000)
stat(), fstat() and lseek().

lib/setup.h

index b02469976d7ae6fee2fe4d029595fee4ecaeb162..c494ce25e9c7ba935dc7ee597cdbe820fb45af7b 100644 (file)
@@ -135,8 +135,11 @@ typedef unsigned char bool;
 
 /* To make large file support transparent even on Windows */
 #if defined(WIN32) && (SIZEOF_CURL_OFF_T > 4)
+#include <sys/stat.h>   /* must come first before we redefine stat() */
+#include <io.h>
 #define lseek(x,y,z) _lseeki64(x, y, z)
 #define struct_stat struct _stati64
+#define stat(file,st) _stati64(file,st)
 #define fstat(fd,st) _fstati64(fd,st)
 #else
 #define struct_stat struct stat