Skip to content

Commit b4690f4

Browse files
committed
internal/netreflect: don't build on go1.9 or above
This package doesn't work with Go 1.9 or above. The bypass surgery for grafting the net and internal/poll packages of Go 1.9 starts with disabling this packge. Updates golang/go#19051. Change-Id: I82d742d267f155cf440884e845b24402a5a5bfdf Reviewed-on: https://go-review.googlesource.com/37034 Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 61557ac commit b4690f4

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

internal/netreflect/socket.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build !go1.9
6+
57
// Package netreflect implements run-time reflection for the
68
// facilities of net package.
9+
//
10+
// This package works only for Go 1.8 or below.
711
package netreflect
812

913
import (

internal/netreflect/socket_posix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build !go1.9
56
// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows
67

78
package netreflect

internal/netreflect/socket_stub.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build !go1.9
56
// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows
67

78
package netreflect

internal/netreflect/socket_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
// +build !go1.9
56
// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows
67

78
package netreflect_test

0 commit comments

Comments
 (0)