about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2013-08-03 14:42:02 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2013-08-03 14:42:02 +0300
commit3c385e0aaa9cfaabc69581b7095a79c4452bcf2c (patch)
treebfe695a81c22ec08288e39beeeecec222033355b /src
parenta6e66cc57106402944445fc709625dcf88785a5b (diff)
downloadprofani-tty-3c385e0aaa9cfaabc69581b7095a79c4452bcf2c.tar.gz
replace struct stat and stat() for windows
Diffstat (limited to 'src')
-rw-r--r--src/common.c6
1 files changed, 6 insertions, 0 deletions
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;