Skip to content

Commit

Permalink
Fix build on Plan 9
Browse files Browse the repository at this point in the history
  • Loading branch information
fhs committed Aug 1, 2020
1 parent 6d43ee1 commit b8af1d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions cli/error_plan9.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package cli

import "os"

func isErrnoNotSupported(err error) bool {
// Sync on os.Stdin or os.Stderr returns "permission denied".
return os.IsPermission(err)
}
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 b8af1d5

Please sign in to comment.