Skip to content

Commit b6b6ba5

Browse files
committed
internal/mmap: use syscall.Mmap on solaris only with go1.20+
syscall.Mmap,Munmap are available on solaris only after go1.20 Fixes golang/go#60968 Change-Id: I39452dfffef16a55af69c328341e3deb3053dd8d Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/505715 Run-TryBot: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent fba892a commit b6b6ba5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/mmap/mmap_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build (js && wasm) || wasip1 || plan9
5+
//go:build (js && wasm) || wasip1 || plan9 || (solaris && !go1.20)
66

77
package mmap
88

internal/mmap/mmap_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build unix
5+
//go:build unix && (!solaris || go1.20)
66

77
package mmap
88

0 commit comments

Comments
 (0)