diff --git a/src/runtime/netpoll.go b/src/runtime/netpoll.go index ee6a95d3b3..7a4b290b74 100644 --- a/src/runtime/netpoll.go +++ b/src/runtime/netpoll.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build linux + package runtime // For debugging purposes this is used for all target architectures, but this is only valid for linux systems. diff --git a/src/runtime/netpoll_generic.go b/src/runtime/netpoll_generic.go index 6a41d61cbc..123d190770 100644 --- a/src/runtime/netpoll_generic.go +++ b/src/runtime/netpoll_generic.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build (js && wasm) || wasip1 || windows +//go:build !linux package runtime diff --git a/src/syscall/forklock_tinygo.go b/src/syscall/forklock_tinygo.go index bdca5a21ed..96e4a7bc9c 100644 --- a/src/syscall/forklock_tinygo.go +++ b/src/syscall/forklock_tinygo.go @@ -1,4 +1,4 @@ -//go:build tinygo +//go:build tinygo && linux package syscall @@ -35,4 +35,4 @@ func SetNonblock(fd int, nonblocking bool) (err error) { return system.SetNonblock(fd, nonblocking) } -type SysProcAttr struct{} +// type SysProcAttr struct{}