From f71725de6e0b4890f85f9f623684a876b9fdfdd8 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Thu, 16 Dec 2004 21:27:29 +0000 Subject: Must include and before redefining stat(), fstat() and lseek(). --- lib/setup.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/setup.h b/lib/setup.h index b02469976..c494ce25e 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 -- cgit v1.2.3