Skip to content

Commit 658926b

Browse files
committed
Fix build failure on riscv64 caused by missing syscall
On RISC-V 64-bit linux systems, syscall `dup2()` is not available, therefore syscall.Dup2 will be undefined and gotop will fail to be built from soure. This patch updates building target of logging/logging_{other,arm64} and renames them based on syscall used.
1 parent d3fc311 commit 658926b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

logging/logging_other.go logging/logging_dup2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build linux,!arm64 openbsd,!arm64 freebsd darwin
1+
// +build linux,!arm64,!riscv64 openbsd,!arm64 freebsd darwin
22

33
package logging
44

logging/logging_arm64.go logging/logging_dup3.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !freebsd,!darwin,arm64
1+
// +build !freebsd,!darwin,arm64 linux,riscv64
22

33
package logging
44

0 commit comments

Comments
 (0)