]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
*** empty log message ***
authorMarc Alexander Lehmann <libev@schmorp.de>
Thu, 19 Jun 2008 06:53:49 +0000 (06:53 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Thu, 19 Jun 2008 06:53:49 +0000 (06:53 +0000)
Changes
ev.c
ev.h

diff --git a/Changes b/Changes
index ae3ecd8cc5eefee7b8be67b643f3235d6b9a1d98..6e337b702643fb627dbf2b0cbe45437b686d8f30 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for libev, a high-performance and full-featured event loop.
 
+       - 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 f495041df5f4d92b15feacee432cf981ccc2c703..545b88e34dc851c8aaac4f6d15b6c78e0afd454b 100644 (file)
--- 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 128b223f2c18b6944e52fed05ee6d7f288b9521f..10b4edcc357170281ea94d2e22b62a36c1b84874 100644 (file)
--- 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