mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: fix ./v -o vcross -os cross cmd/v
on macos
This commit is contained in:
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
Block a user