Skip to content

Commit fdc75d6

Browse files
committed
adjust target os specific build tags
1 parent 4b123a7 commit fdc75d6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/runtime/netpoll.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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 linux
6+
57
package runtime
68

79
// 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) {
4143
//go:linkname poll_runtime_pollOpen internal/poll.runtime_pollOpen
4244
func poll_runtime_pollOpen(fd uintptr) (*pollDesc, int) {
4345
// println("poll_runtime_pollOpen not implemented", fd)
44-
return &pollDesc{runtimeCtx: 0x13371337}, pollNoError
46+
return &pollDesc{runtimeCtx: uintptr(0xdeadbeef)}, pollNoError
4547
}

src/runtime/netpoll_generic.go

+1-1
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 || windows
5+
//go:build !linux
66

77
package runtime
88

src/syscall/forklock_tinygo.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build tinygo
1+
//go:build tinygo && linux && !wasip1 && !wasip2 && !darwin
22

33
package syscall
44

@@ -35,4 +35,4 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
3535
return system.SetNonblock(fd, nonblocking)
3636
}
3737

38-
type SysProcAttr struct{}
38+
// type SysProcAttr struct{}

0 commit comments

Comments
 (0)