summaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/net/internal/netreflect/socket_stub.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/net/internal/netreflect/socket_stub.go')
-rw-r--r--vendor/golang.org/x/net/internal/netreflect/socket_stub.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/golang.org/x/net/internal/netreflect/socket_stub.go b/vendor/golang.org/x/net/internal/netreflect/socket_stub.go
new file mode 100644
index 000000000..85adb4b7f
--- /dev/null
+++ b/vendor/golang.org/x/net/internal/netreflect/socket_stub.go
@@ -0,0 +1,11 @@
+// Copyright 2016 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 !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
+
+package netreflect
+
+import "net"
+
+func socketOf(c net.Conn) (uintptr, error) { return 0, errOpNoSupport }