Index: src/runtime/signal_riscv64.go
--- src/runtime/signal_riscv64.go.orig
+++ src/runtime/signal_riscv64.go
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build linux && riscv64
+//go:build linux || openbsd
 
 package runtime
 
