Mercurial > libdvdread4.hg
changeset 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 | 5f0f78aac041 |
children | a481060ec57b |
files | dvd_reader.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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