Mercurial > mplayer.hg
diff libmpdvdkit2/dvd_reader.c @ 10825:b9bbfd4a0acc
fix debug compilation on mingw
author | faust3 |
---|---|
date | Sat, 06 Sep 2003 13:36:15 +0000 |
parents | dc98cee9a50f |
children | 663fdd72e594 |
line wrap: on
line diff
--- a/libmpdvdkit2/dvd_reader.c Sat Sep 06 13:21:08 2003 +0000 +++ b/libmpdvdkit2/dvd_reader.c Sat Sep 06 13:36:15 2003 +0000 @@ -45,6 +45,16 @@ #include <mntent.h> #endif +#ifdef __MINGW32__ +#include <sys/timeb.h> +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"