diff options
Diffstat (limited to 'src/runtime/os_openbsd_syscall2.go')
-rw-r--r-- | src/runtime/os_openbsd_syscall2.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/os_openbsd_syscall2.go b/src/runtime/os_openbsd_syscall2.go index ab940510af..3b1707126b 100644 --- a/src/runtime/os_openbsd_syscall2.go +++ b/src/runtime/os_openbsd_syscall2.go @@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build openbsd && !amd64 && !arm64 // +build openbsd,!amd64,!arm64 package runtime @@ -32,6 +33,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 |