From 6219ca26e0eb60788f1cc1a47b9a0f74f8167afe Mon Sep 17 00:00:00 2001 From: faust3 Date: Sat, 6 Sep 2003 13:36:15 +0000 Subject: [PATCH] fix debug compilation on mingw git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10826 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdvdkit2/dvd_reader.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libmpdvdkit2/dvd_reader.c b/libmpdvdkit2/dvd_reader.c index a24f032b27..d800ae654c 100644 --- a/libmpdvdkit2/dvd_reader.c +++ b/libmpdvdkit2/dvd_reader.c @@ -45,6 +45,16 @@ #include #endif +#ifdef __MINGW32__ +#include +static void gettimeofday(struct timeval* t,void* timezone){ + struct timeb timebuffer; + ftime( &timebuffer ); + t->tv_sec=timebuffer.time; + t->tv_usec=1000*timebuffer.millitm; +} +#endif + #include "dvd_udf.h" #include "dvd_input.h" #include "dvd_reader.h"