From 29f55bdf9b8ec85dfa9082df23bc74d5d96b3e91 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 24 Jul 2021 07:55:48 +0300 Subject: [PATCH] time: fix V compilation for solaris --- vlib/time/time_solaris.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/time/time_solaris.c.v b/vlib/time/time_solaris.c.v index b4dee546ce..b87f1c81d6 100644 --- a/vlib/time/time_solaris.c.v +++ b/vlib/time/time_solaris.c.v @@ -9,7 +9,7 @@ fn solaris_now() Time { mut ts := C.timespec{} C.clock_gettime(C.CLOCK_REALTIME, &ts) loc_tm := C.tm{} - C.localtime_r(&ts.tv_sec, &loc_tm) + C.localtime_r(voidptr(&ts.tv_sec), &loc_tm) return convert_ctime(loc_tm, int(ts.tv_nsec / 1000)) }