diff options
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/runtime/netpoll.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/runtime/netpoll.go b/libgo/go/runtime/netpoll.go index da00b57..879112a 100644 --- a/libgo/go/runtime/netpoll.go +++ b/libgo/go/runtime/netpoll.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build aix || darwin || dragonfly || freebsd || hurd || (js && wasm) || linux || netbsd || openbsd || solaris || windows // +build aix darwin dragonfly freebsd hurd js,wasm linux netbsd openbsd solaris windows package runtime @@ -567,8 +568,7 @@ func (c *pollCache) alloc() *pollDesc { func (pd *pollDesc) makeArg() (i interface{}) { x := (*eface)(unsafe.Pointer(&i)) x._type = pdType - // For gccgo, we still use pd.self here, not &pd.self. - x.data = unsafe.Pointer(pd.self) + x.data = unsafe.Pointer(&pd.self) return } |