diff options
Diffstat (limited to 'vendor/modernc.org/libc/libc_darwin_amd64.go')
-rw-r--r-- | vendor/modernc.org/libc/libc_darwin_amd64.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/modernc.org/libc/libc_darwin_amd64.go b/vendor/modernc.org/libc/libc_darwin_amd64.go index 74a51ade5..0513b1e49 100644 --- a/vendor/modernc.org/libc/libc_darwin_amd64.go +++ b/vendor/modernc.org/libc/libc_darwin_amd64.go @@ -6,6 +6,7 @@ package libc // import "modernc.org/libc" import ( "strings" + "time" "unsafe" "golang.org/x/sys/unix" @@ -241,12 +242,11 @@ func Xtime(t *TLS, tloc uintptr) types.Time_t { if __ccgo_strace { trc("t=%v tloc=%v, (%v:)", t, tloc, origin(2)) } - panic(todo("")) - // n := time.Now().UTC().Unix() - // if tloc != 0 { - // *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) - // } - // return types.Time_t(n) + n := time.Now().UTC().Unix() + if tloc != 0 { + *(*types.Time_t)(unsafe.Pointer(tloc)) = types.Time_t(n) + } + return types.Time_t(n) } // // int getrlimit(int resource, struct rlimit *rlim); |