diff -a -x Root -x Repository -x Tag -x Entries -x Entries.Log -x .svn -x '*.rej' -x '*.orig' -N -r -u ./src/config/mingw/os_stubs_c.c ./src/config/mingw/os_stubs_c.c
--- ./src/config/mingw/os_stubs_c.c	2006-02-20 02:30:19.000000000 +0100
+++ ./src/config/mingw/os_stubs_c.c	2006-07-22 01:14:27.000000000 +0200
@@ -188,7 +188,7 @@
 *******************************************************************/
 
 //http://lists.gnu.org/archive/html/bug-gnu-chess/2004-01/msg00020.html
-void gettimeofday(struct timeval* p, void* tz /* IGNORED */){
+void ml_gettimeofday(struct timeval* p, void* tz /* IGNORED */){
    union {
      long long ns100; /*time since 1 Jan 1601 in 100ns units */
      FILETIME ft;
diff -a -x Root -x Repository -x Tag -x Entries -x Entries.Log -x .svn -x '*.rej' -x '*.orig' -N -r -u ./src/utils/lib/stubs_c.c ./src/utils/lib/stubs_c.c
--- ./src/utils/lib/stubs_c.c	2006-02-20 02:30:19.000000000 +0100
+++ ./src/utils/lib/stubs_c.c	2006-07-22 01:15:13.000000000 +0200
@@ -854,7 +854,11 @@
   pthread_mutex_lock(&mutex);
 
   while(1){
+#if defined(__MINGW32__)
+    ml_gettimeofday(&now, NULL);
+#else
     gettimeofday(&now, NULL);
+#endif
     timeout.tv_sec = now.tv_sec + 10;
     timeout.tv_nsec = now.tv_usec * 1000;
 
