summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2011-07-19 05:18:22 +0000
committerroot <root>2011-07-19 05:18:22 +0000
commitb6919596507d363d8777bb551ab5ca8b1bbbc28b (patch)
tree6b4bf87074c0e6c34f578e2686a7d290e3943ec9
parent705921b297103db6212c2c8512c917abf62f8093 (diff)
*** empty log message ***
-rw-r--r--eio.c5
-rw-r--r--eio.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/eio.c b/eio.c
index 15c3f93..ecf6f61 100644
--- a/eio.c
+++ b/eio.c
@@ -166,7 +166,6 @@ static void eio_destroy (eio_req *req);
#include <sys/select.h>
#include <sys/statvfs.h>
#include <unistd.h>
- #include <utime.h>
#include <signal.h>
#include <dirent.h>
@@ -200,6 +199,10 @@ static void eio_destroy (eio_req *req);
#endif
+#if HAVE_UTIMES
+# include <utime.h>
+#endif
+
#if HAVE_SENDFILE
# if __linux
# include <sys/sendfile.h>
diff --git a/eio.h b/eio.h
index 97d088a..d2c0612 100644
--- a/eio.h
+++ b/eio.h
@@ -69,7 +69,7 @@ typedef int (*eio_cb)(eio_req *req);
#ifdef _WIN32
typedef int eio_uid_t;
typedef int eio_gid_t;
- #ifdef _MINGW32_ /* no intptr_t */
+ #ifdef __MINGW32__ /* no intptr_t */
typedef ssize_t eio_ssize_t;
#else
typedef intptr_t eio_ssize_t; /* or SSIZE_T */