changeset 31667:f5d48f0e33c3

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.
author reimar
date Tue, 13 Jul 2010 19:49:25 +0000
parents 796b778e2411
children bbd4f3ab3341
files osdep/gettimeofday.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/osdep/gettimeofday.c	Tue Jul 13 15:11:34 2010 +0000
+++ b/osdep/gettimeofday.c	Tue Jul 13 19:49:25 2010 +0000
@@ -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;
 }