From c625cec1f83bebccf9cbc42996f08f39e66a8663 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 13 Jul 2010 19:49:25 +0000 Subject: 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 --- osdep/gettimeofday.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osdep/gettimeofday.c b/osdep/gettimeofday.c index 2dd59acaa1..00d62a3dde 100644 --- a/osdep/gettimeofday.c +++ b/osdep/gettimeofday.c @@ -20,9 +20,10 @@ #include #include -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; } -- cgit v1.2.3