diff --git a/src/runtime/netpoll.go b/src/runtime/netpoll.go index ee6a95d3b3..1a182e3491 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. @@ -41,5 +43,5 @@ func poll_runtime_pollSetDeadline(pd *pollDesc, d int64, mode int) { //go:linkname poll_runtime_pollOpen internal/poll.runtime_pollOpen func poll_runtime_pollOpen(fd uintptr) (*pollDesc, int) { // println("poll_runtime_pollOpen not implemented", fd) - return &pollDesc{runtimeCtx: 0x13371337}, pollNoError + return &pollDesc{runtimeCtx: uintptr(0xdeadbeef)}, pollNoError } 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..db9469e2fa 100644 --- a/src/syscall/forklock_tinygo.go +++ b/src/syscall/forklock_tinygo.go @@ -1,4 +1,4 @@ -//go:build tinygo +//go:build tinygo && linux && !wasip1 && !wasip2 && !darwin 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{}