summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2007-11-27 09:17:51 +0000
committerroot <root>2007-11-27 09:17:51 +0000
commitba71cf07f3506b8e303130e981d3b5b3e9ea5dc8 (patch)
treedd50c0921f538a44917832916681ceae45223966
parent32d31146fc7b464e5934da588ba7278da5944e0b (diff)
win32, win32, lose32
-rw-r--r--ev.c3
-rw-r--r--ev.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 810c10a..40e2292 100644
--- a/ev.c
+++ b/ev.c
@@ -1634,7 +1634,8 @@ ev_child_stop (EV_P_ ev_child *w)
#if EV_STAT_ENABLE
# ifdef _WIN32
-# define lstat(a,b) stat(a,b)
+# undef lstat
+# define lstat(a,b) _stati64 (a,b)
# endif
#define DEF_STAT_INTERVAL 5.0074891
diff --git a/ev.h b/ev.h
index 4b0341c..76f7a10 100644
--- a/ev.h
+++ b/ev.h
@@ -213,7 +213,11 @@ typedef struct ev_child
#if EV_STAT_ENABLE
/* st_nlink = 0 means missing file or other error */
+#ifdef _WIN32
+typedef struct _stati64 ev_statdata;
+#else
typedef struct stat ev_statdata;
+#endif
/* invoked each time the stat data changes for a given path */
/* revent EV_STAT */