# HG changeset patch # User nicodvb # Date 1212655535 0 # Node ID d80a041928be9b2697de7ae92c146006747d0069 # Parent 1ab4b25afca3154a207cb4fd6a01140e8d408d96 gettimeofday() doesn't exist on windows, but recent mingw32 runtime include a replacement. The dvdnav replacement 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 1ab4b25afca3 -r d80a041928be dvdnav_internal.h --- a/dvdnav_internal.h Sun Jun 01 16:00:17 2008 +0000 +++ b/dvdnav_internal.h Thu Jun 05 08:45:35 2008 +0000 @@ -39,6 +39,7 @@ #define pthread_mutex_unlock(a) LeaveCriticalSection(a) #define pthread_mutex_destroy(a) +#ifndef HAVE_GETTIMEOFDAY /* replacement gettimeofday implementation */ #include static inline int _private_gettimeofday( struct timeval *tv, void *tz ) @@ -50,6 +51,8 @@ return 0; } #define gettimeofday(TV, TZ) _private_gettimeofday((TV), (TZ)) +#endif + #include /* read() */ #define lseek64 _lseeki64