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:
reimar 2010-07-13 19:49:25 +00:00 committed by Uoti Urpala
parent f1773d911a
commit c625cec1f8
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}