aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/net/internal/socket/sys_bsdvar.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/net/internal/socket/sys_bsdvar.go')
-rw-r--r--vendor/golang.org/x/net/internal/socket/sys_bsdvar.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/golang.org/x/net/internal/socket/sys_bsdvar.go b/vendor/golang.org/x/net/internal/socket/sys_bsdvar.go
index 02e5606..b4f41b5 100644
--- a/vendor/golang.org/x/net/internal/socket/sys_bsdvar.go
+++ b/vendor/golang.org/x/net/internal/socket/sys_bsdvar.go
@@ -2,7 +2,7 @@
2// Use of this source code is governed by a BSD-style 2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file. 3// license that can be found in the LICENSE file.
4 4
5// +build freebsd netbsd openbsd 5// +build aix freebsd netbsd openbsd
6 6
7package socket 7package socket
8 8
@@ -15,6 +15,9 @@ func probeProtocolStack() int {
15 if (runtime.GOOS == "netbsd" || runtime.GOOS == "openbsd") && runtime.GOARCH == "arm" { 15 if (runtime.GOOS == "netbsd" || runtime.GOOS == "openbsd") && runtime.GOARCH == "arm" {
16 return 8 16 return 8
17 } 17 }
18 if runtime.GOOS == "aix" {
19 return 1
20 }
18 var p uintptr 21 var p uintptr
19 return int(unsafe.Sizeof(p)) 22 return int(unsafe.Sizeof(p))
20} 23}