-
-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add syscall for riscv64 architecture
- Loading branch information
1 parent
9869142
commit f66e896
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// +build linux,riscv64 | ||
|
||
package remote | ||
|
||
import "syscall" | ||
|
||
// linux_riscv64 doesn't have syscall.Dup2 which ginkgo uses, so | ||
// use the nearly identical syscall.Dup3 instead | ||
func syscallDup(oldfd int, newfd int) (err error) { | ||
return syscall.Dup3(oldfd, newfd, 0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// +build !linux !arm64 | ||
// +build !linux !riscv64 | ||
// +build !windows | ||
// +build !solaris | ||
|
||
|