mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
fix nogo error
Avoids messages like: error checking types: pkg/sync/runtime_unsafe.go:105:21: predeclared any requires go1.18 or later PiperOrigin-RevId: 525559255
This commit is contained in:
committed by
gVisor bot
parent
7ac973abc5
commit
d2b4837570
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build go1.12
|
||||
// +build go1.12
|
||||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
// //go:linkname directives type-checked by checklinkname. Any other
|
||||
// non-linkname assumptions outside the Go 1 compatibility guarantee should
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build go1.12
|
||||
// +build go1.12
|
||||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
// //go:linkname directives type-checked by checklinkname. Any other
|
||||
// non-linkname assumptions outside the Go 1 compatibility guarantee should
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build go1.12
|
||||
// +build go1.12
|
||||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
// //go:linkname directives type-checked by checklinkname. Any other
|
||||
// non-linkname assumptions outside the Go 1 compatibility guarantee should
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build go1.12
|
||||
// +build go1.12
|
||||
//go:build go1.18
|
||||
// +build go1.18
|
||||
|
||||
// //go:linkname directives type-checked by checklinkname. Any other
|
||||
// non-linkname assumptions outside the Go 1 compatibility guarantee should
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.13 && !go1.22
|
||||
// +build go1.13,!go1.22
|
||||
//go:build go1.18 && !go1.22
|
||||
// +build go1.18,!go1.22
|
||||
|
||||
// //go:linkname directives type-checked by checklinkname. Any other
|
||||
// non-linkname assumptions outside the Go 1 compatibility guarantee should
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build ((linux && amd64) || (linux && arm64)) && go1.12
|
||||
//go:build ((linux && amd64) || (linux && arm64)) && go1.18
|
||||
// +build linux,amd64 linux,arm64
|
||||
// +build go1.12
|
||||
// +build go1.18
|
||||
|
||||
// //go:linkname directives type-checked by checklinkname. Any other
|
||||
// non-linkname assumptions outside the Go 1 compatibility guarantee should
|
||||
@@ -37,7 +37,7 @@ import (
|
||||
//go:noescape
|
||||
func BlockingPoll(fds *PollEvent, nfds int, timeout *unix.Timespec) (int, unix.Errno)
|
||||
|
||||
// Use go:linkname to call into the runtime. As of Go 1.12 this has to
|
||||
// Use go:linkname to call into the runtime. As of Go 1.13 this has to
|
||||
// be done from Go code so that we make an ABIInternal call to an
|
||||
// ABIInternal function; see https://golang.org/issue/27539.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user