Skip to content

Commit 689cc11

Browse files
jwntreegopherbot
authored andcommitted
unix: fix Listen on solaris
libsocket has __xnet_listen, not __xnet_llisten which prevents listen from working. Change-Id: Ia06dc569fcb9950893d91fc1b86257c7742e9e3d GitHub-Last-Rev: 6f37c4b GitHub-Pull-Request: #258 Reviewed-on: https://go-review.googlesource.com/c/sys/+/691735 Reviewed-by: Michael Pratt <mpratt@google.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Jes Cok <xigua67damn@gmail.com> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
1 parent a4712b9 commit 689cc11

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

unix/syscall_solaris.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ func Sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
629629
//sys Kill(pid int, signum syscall.Signal) (err error)
630630
//sys Lchown(path string, uid int, gid int) (err error)
631631
//sys Link(path string, link string) (err error)
632-
//sys Listen(s int, backlog int) (err error) = libsocket.__xnet_llisten
632+
//sys Listen(s int, backlog int) (err error) = libsocket.__xnet_listen
633633
//sys Lstat(path string, stat *Stat_t) (err error)
634634
//sys Madvise(b []byte, advice int) (err error)
635635
//sys Mkdir(path string, mode uint32) (err error)

unix/zsyscall_solaris_amd64.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)