summaryrefslogtreecommitdiff
path: root/debian/patches/src_libgo_go_net_sock_gnu.go.diff
blob: 22b03a4015d0cd805683a103b9519b6f288a50d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: gcc-6-6.2.1-4.1/src/libgo/go/net/sock_gnu.go
===================================================================
--- /dev/null
+++ gcc-6-6.2.1-4.1/src/libgo/go/net/sock_gnu.go
@@ -0,0 +1,14 @@
+// Copyright 2014 The Go Authors.  All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build gnu
+
+package net
+
+import "syscall"
+
+func maxListenerBacklog() int {
+       // From /usr/include/i386-gnu/bits/socket.h
+       return syscall.SOMAXCONN
+}