]> Cypherpunks repositories - gostls13.git/commit
runtime: protect plan9 time_now function with !faketime build tag
authorRichard Miller <millerresearch@gmail.com>
Fri, 4 Apr 2025 19:48:18 +0000 (20:48 +0100)
committerDavid du Colombier <0intro@gmail.com>
Mon, 7 Apr 2025 16:53:44 +0000 (09:53 -0700)
commitadb29670fcf704e1b76db4d31331aaecd0db7118
tree3597c35e10049500c3baff3d3abc4a44e9ebc38c
parent20a924fe877b70af75d26d0e7fa86b3310851f76
runtime: protect plan9 time_now function with !faketime build tag

The introduction of monotonic time support for Plan 9 in CL 656755
causes a build error with multiple declaration of time_now when
built with tag faketime. Correct this by moving function time_now
into its own source file with !faketime build tag.

Fixes #73169

Change-Id: Id7a9a1c77e286511e25546089681f2f88a9538bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/662856
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: David du Colombier <0intro@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/os_plan9.go
src/runtime/time_plan9.go [new file with mode: 0644]