  int strcasecmp(const char*, const char *);
  int gettimeofday(struct timeval *, struct timezone *);
  
-@@ -247,7 +260,7 @@
- #define open   _open
+@@ -244,10 +261,12 @@
+ ssize_t win32_write(int fd, const void *buffer, size_t count);
+ int win32_ioctl(int fd, unsigned long int req, ...);
+ 
+-#define open   _open
++#if !defined(MINGW64)
++# define open   _open
++#endif
  
  int fcntl(int fd, int cmd, long arg);
 -int fstat(int fd, struct stat *sb);

 
 int inet_aton(const char *cp, struct in_addr *inp);
 int kill(int pid, int signo);
@@ -264,6 +277,10 @@
 #endif //HAVE_MINGW
 
 
+#ifdef MINGW64
+int utime(const char *filename, struct utimbuf *buf);
+#endif
+
 #define WNOHANG 0
 #define WIFEXITED(x) 0
 #define WEXITSTATUS(x) x
Index: src/win32/compat/print.cpp
===================================================================
--- src/win32/compat/print.cpp	(révision 8323)

 
 #if __STDC__ && !defined(HAVE_MINGW)
 typedef _dev_t dev_t;
@@ -129,10 +141,15 @@
 #endif
 #endif
 
