Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on Plan 9 #200

Merged
merged 1 commit into from
Aug 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions cli/error_plan9.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package cli

import "syscall"

func isErrnoNotSupported(err error) bool {
switch err {
case
// Operation not supported
syscall.EINVAL, syscall.EPLAN9,
// Sync on os.Stdin or os.Stderr returns "permission denied".
syscall.EPERM:
return true
}
return false
}
2 changes: 1 addition & 1 deletion cli/error_posix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//+build !windows
//+build !windows,!plan9

package cli

Expand Down