diff --git a/src/pkg/syscall/syscall_bsd.go b/src/pkg/syscall/syscall_bsd.go index 114a9636754..767537093e5 100644 --- a/src/pkg/syscall/syscall_bsd.go +++ b/src/pkg/syscall/syscall_bsd.go @@ -323,8 +323,10 @@ func Socket(domain, typ, proto int) (fd, errno int) { return } +//sys socketpair(domain int, typ int, proto int, fd *[2]int) (errno int) + func Socketpair(domain, typ, proto int) (fd [2]int, errno int) { - fd, errno = socketpair(domain, typ, proto) + errno = socketpair(domain, typ, proto, &fd) return }