[MPlayer-cvslog] r31733 - trunk/osdep/gettimeofday.c
reimar
subversion at mplayerhq.hu
Tue Jul 13 21:49:25 CEST 2010
Author: reimar
Date: Tue Jul 13 21:49:25 2010
New Revision: 31733
Log:
Fix gettimeofday type to match the real one.
Avoids issues if the system headers have a declaration for
it but there's just no implementation there.
Modified:
trunk/osdep/gettimeofday.c
Modified: trunk/osdep/gettimeofday.c
==============================================================================
--- trunk/osdep/gettimeofday.c Tue Jul 13 17:11:34 2010 (r31732)
+++ trunk/osdep/gettimeofday.c Tue Jul 13 21:49:25 2010 (r31733)
@@ -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;
}
More information about the MPlayer-cvslog
mailing list