Skip to content
Snippets Groups Projects
Commit 2a7486dd authored by Avi Kivity's avatar Avi Kivity
Browse files

libc: extern "C" gettimeofday()

Probably unneeded with the prototype fix, but can't hurt.
parent 1ee1a237
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ u64 convert(const timespec& ts) ...@@ -9,6 +9,7 @@ u64 convert(const timespec& ts)
return ts.tv_sec * 1000000000 + ts.tv_nsec; return ts.tv_sec * 1000000000 + ts.tv_nsec;
} }
extern "C"
int gettimeofday(struct timeval* tv, struct timezone* tz) int gettimeofday(struct timeval* tv, struct timezone* tz)
{ {
if (!tv) { if (!tv) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment