From f5a22f15d91fe721371ec2578d76ea89160033f6 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 6 Sep 2021 19:50:16 +0300 Subject: [PATCH] time: fix `./v -o vcross -os cross cmd/v` on macos --- vlib/time/time_darwin.c.v | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vlib/time/time_darwin.c.v b/vlib/time/time_darwin.c.v index d16c66b275..db8b9bb335 100644 --- a/vlib/time/time_darwin.c.v +++ b/vlib/time/time_darwin.c.v @@ -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{} +}