diff dvd_reader.c @ 6:e5663591d13c src

gettimeofday() doesn't exist in windows, but recent mingw32 runtime include a replacement that clashes with mingw32's one. This patch will check for it in configure.ac and define the private function only if gettimeofday() is not defined. Patch by Rafael Carr? (funman videolan org)
author nicodvb
date Thu, 05 Jun 2008 08:52:00 +0000
parents fdbae45c30fc
children a481060ec57b
line wrap: on
line diff
--- a/dvd_reader.c	Mon Jun 02 09:27:49 2008 +0000
+++ b/dvd_reader.c	Thu Jun 05 08:52:00 2008 +0000
@@ -34,6 +34,7 @@
 
 /* misc win32 helpers */
 #ifdef WIN32
+#ifndef HAVE_GETTIMEOFDAY
 /* replacement gettimeofday implementation */
 #include <sys/timeb.h>
 static inline int _private_gettimeofday( struct timeval *tv, void *tz )
@@ -45,6 +46,7 @@
   return 0;
 }
 #define gettimeofday(TV, TZ) _private_gettimeofday((TV), (TZ))
+#endif
 #include <io.h> /* read() */
 #define lseek64 _lseeki64
 #endif