mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 13:14:36 +00:00
osdep: Fix gettimeofday type to match the real one
Avoids issues if the system headers have a declaration for gettimeofday but there's just no implementation there. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31733 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f1773d911a
commit
c625cec1f8
@ -20,9 +20,10 @@
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/timeb.h>
|
||||
void gettimeofday(struct timeval* t,void* timezone)
|
||||
int gettimeofday(struct timeval* t, struct timezone* timezone)
|
||||
{ struct timeb timebuffer;
|
||||
ftime( &timebuffer );
|
||||
t->tv_sec=timebuffer.time;
|
||||
t->tv_usec=1000*timebuffer.millitm;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user