time: fix `./v -o vcross -os cross cmd/v` on macos
parent
c6ff687e8a
commit
f5a22f15d9
|
@ -82,3 +82,13 @@ fn darwin_utc() Time {
|
||||||
C.gettimeofday(&tv, 0)
|
C.gettimeofday(&tv, 0)
|
||||||
return unix2(i64(tv.tv_sec), int(tv.tv_usec))
|
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{}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue