diff --git a/src/internal/syscall/unix/at_sysnum_fstatat_linux.go b/src/internal/syscall/unix/at_sysnum_fstatat_linux.go index 580e7997f8d192..31fe6a5a7b56e7 100644 --- a/src/internal/syscall/unix/at_sysnum_fstatat_linux.go +++ b/src/internal/syscall/unix/at_sysnum_fstatat_linux.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. -// +build arm64 +// +build arm64 riscv64 package unix diff --git a/src/internal/syscall/unix/getrandom_linux_generic.go b/src/internal/syscall/unix/getrandom_linux_generic.go index f8490ce97857c7..e69bf6b675ed5c 100644 --- a/src/internal/syscall/unix/getrandom_linux_generic.go +++ b/src/internal/syscall/unix/getrandom_linux_generic.go @@ -2,15 +2,15 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build linux,arm64 +// +build linux +// +build arm64 riscv64 package unix // Linux getrandom system call number. // See GetRandom in getrandom_linux.go. // -// This file is named "generic" because at a certain point Linux -// started standardizing on system call numbers across -// architectures. So far this means only arm64 uses the standard -// numbers. +// This file is named "generic" because at a certain point Linux started +// standardizing on system call numbers across architectures. So far this means +// only arm64 and riscv64 use the standard numbers. const randomTrap uintptr = 278