time: fix `./v -o vcross -os cross cmd/v` on macos

pull/11419/head
Delyan Angelov 2021-09-06 19:50:16 +03:00
parent c6ff687e8a
commit f5a22f15d9
1 changed files with 10 additions and 0 deletions

View File

@ -82,3 +82,13 @@ fn darwin_utc() Time {
C.gettimeofday(&tv, 0)
return unix2(i64(tv.tv_sec), int(tv.tv_usec))
}
// dummy to compile with all compilers
pub fn solaris_now() Time {
return Time{}
}
// dummy to compile with all compilers
pub fn solaris_utc() Time {
return Time{}
}