summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-06-19 06:53:49 +0000
committerroot <root>2008-06-19 06:53:49 +0000
commit5a144ccc9d0e76bbf6167163e674796e37dc0fde (patch)
treef2c9da0e631c197918597b5e3448cee664d2bc13
parent1609948b4aabde98f6cac1d8ed725617fdf73e7b (diff)
*** empty log message ***
-rw-r--r--Changes5
-rw-r--r--ev.c1
-rw-r--r--ev.h5
3 files changed, 11 insertions, 0 deletions
diff --git a/Changes b/Changes
index ae3ecd8..7c00e7e 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
Revision history for libev, a high-performance and full-featured event loop.
+ - include more include files on windows to get struct _stati64
+ (reported by Chris Hulbert).
+ - add missing #include <io.h> in ev.c on windows (reported by
+ Matt Tolton).
+
3.42 Tue Jun 17 12:12:07 CEST 2008
- work around yet another windows bug: FD_SET actually adds fd's
multiple times to the fd_*SET*, despite official MSN docs claiming
diff --git a/ev.c b/ev.c
index f495041..545b88e 100644
--- a/ev.c
+++ b/ev.c
@@ -156,6 +156,7 @@ extern "C" {
# include <sys/wait.h>
# include <unistd.h>
#else
+# include <io.h>
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# ifndef EV_SELECT_IS_WINSOCKET
diff --git a/ev.h b/ev.h
index 128b223..10b4edc 100644
--- a/ev.h
+++ b/ev.h
@@ -90,6 +90,11 @@ typedef double ev_tstamp;
/*****************************************************************************/
#if EV_STAT_ENABLE
+# ifdef _WIN32
+# include <time.h>
+# include <sys/types.h>
+# include <stdio.h>
+# endif
# include <sys/stat.h>
#endif