|
@@ -1,4 +1,5 @@
|
|
|
#include <time.h>
|
|
|
+#include <sys/time.h>
|
|
|
#include <errno.h>
|
|
|
#include <assert.h>
|
|
|
#include <Kernel/Syscall.h>
|
|
@@ -16,7 +17,7 @@ time_t time(time_t* tloc)
|
|
|
return tv.tv_sec;
|
|
|
}
|
|
|
|
|
|
-int gettimeofday(struct timeval* tv, struct timezone*)
|
|
|
+int gettimeofday(struct timeval* __restrict__ tv, void* __restrict__)
|
|
|
{
|
|
|
int rc = syscall(SC_gettimeofday, tv);
|
|
|
__RETURN_WITH_ERRNO(rc, rc, -1);
|