From 3c385e0aaa9cfaabc69581b7095a79c4452bcf2c Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Sat, 3 Aug 2013 14:42:02 +0300 Subject: [PATCH] replace struct stat and stat() for windows --- src/common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common.c b/src/common.c index da33cc3d..42c1415f 100644 --- a/src/common.c +++ b/src/common.c @@ -39,6 +39,12 @@ // and page size is at least 4KB #define READ_BUF_SIZE 4088 +#ifdef _WIN32 +// replace 'struct stat' and 'stat()' for windows +#define stat _stat +#define S_IFDIR _S_IFDIR +#endif /* _WIN32 */ + struct curl_data_t { char *buffer;