From: Gisle Vanem Date: Thu, 16 Dec 2004 21:27:29 +0000 (+0000) Subject: Must include and before redefining X-Git-Tag: curl-7_12_3~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f71725de6e0b4890f85f9f623684a876b9fdfdd8;p=thirdparty%2Fcurl.git Must include and before redefining stat(), fstat() and lseek(). --- diff --git a/lib/setup.h b/lib/setup.h index b02469976d..c494ce25e9 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -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 /* must come first before we redefine stat() */ +#include #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