Skip to content

Commit

Permalink
adjust target os specific build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
leongross committed Oct 8, 2024
1 parent 4b123a7 commit fdc75d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/runtime/netpoll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion src/runtime/netpoll_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/syscall/forklock_tinygo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build tinygo
//go:build tinygo && linux && !wasip1 && !wasip2 && !darwin

package syscall

Expand Down Expand Up @@ -35,4 +35,4 @@ func SetNonblock(fd int, nonblocking bool) (err error) {
return system.SetNonblock(fd, nonblocking)
}

type SysProcAttr struct{}
// type SysProcAttr struct{}

0 comments on commit fdc75d6

Please sign in to comment.