diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-07-13 19:49:25 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:14:44 +0200 |
commit | c625cec1f83bebccf9cbc42996f08f39e66a8663 (patch) | |
tree | 83b47fe68e140911b989e61d6c58f1d80addf28c /osdep | |
parent | f1773d911a1e515f3831ac4f3b7209dadd006ccb (diff) | |
download | mpv-c625cec1f83bebccf9cbc42996f08f39e66a8663.tar.bz2 mpv-c625cec1f83bebccf9cbc42996f08f39e66a8663.tar.xz |
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
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/gettimeofday.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <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; } |