Skip to content

Commit 9ed0725

Browse files
committed
sockets: fix compilation on illumos
introduced in f3526e5 sockets/unix_socket_nolinux.go:19:20: undefined: syscall.SysctlUint32 sockets/unix_socket_nolinux.go:21:20: undefined: syscall.SysctlUint32 sockets/unix_socket_nolinux.go:25:20: undefined: syscall.SysctlUint32 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 08a8891 commit 9ed0725

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !linux && !windows
1+
//go:build darwin || dragonfly || freebsd || netbsd || openbsd
22

33
package sockets
44

sockets/unix_socket_other.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//go:build !linux && !darwin && !dragonfly && !freebsd && !netbsd && !openbsd && !windows
2+
3+
package sockets
4+
5+
import "syscall"
6+
7+
func maxListenerBacklog() int {
8+
return syscall.SOMAXCONN
9+
}

0 commit comments

Comments
 (0)