# HG changeset patch # User nicodvb # Date 1212655920 0 # Node ID e5663591d13caa3648eaedb6aaead9456ed7a89e # Parent 5f0f78aac041b86e4ca1b51b5fcf846f96a12aaf 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) diff -r 5f0f78aac041 -r e5663591d13c dvd_reader.c --- 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 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 /* read() */ #define lseek64 _lseeki64 #endif