Skip to content

Commit

Permalink
Merge pull request #199 from fhs/plan9
Browse files Browse the repository at this point in the history
Fix build on Plan 9
  • Loading branch information
willscott authored Aug 1, 2020
2 parents 6d43ee1 + 63d1609 commit 0cd468a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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

0 comments on commit 0cd468a

Please sign in to comment.