diff options
Diffstat (limited to 'libgo/go/runtime/stubs2.go')
-rw-r--r-- | libgo/go/runtime/stubs2.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libgo/go/runtime/stubs2.go b/libgo/go/runtime/stubs2.go index 93ff566..c9e5f3d 100644 --- a/libgo/go/runtime/stubs2.go +++ b/libgo/go/runtime/stubs2.go @@ -2,9 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build !js -// +build !plan9 -// +build !windows +//go:build !js && !plan9 && !windows +// +build !js,!plan9,!windows package runtime @@ -21,6 +20,11 @@ func closefd(fd int32) int32 func exit(code int32) func usleep(usec uint32) +//go:nosplit +func usleep_no_g(usec uint32) { + usleep(usec) +} + // write calls the write system call. // It returns a non-negative number of bytes written or a negative errno value. //go:noescape |