Skip to content

Commit 0cd468a

Browse files
authored
Merge pull request #199 from fhs/plan9
Fix build on Plan 9
2 parents 6d43ee1 + 63d1609 commit 0cd468a

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

cli/error_plan9.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package cli
2+
3+
import "syscall"
4+
5+
func isErrnoNotSupported(err error) bool {
6+
switch err {
7+
case
8+
// Operation not supported
9+
syscall.EINVAL, syscall.EPLAN9,
10+
// Sync on os.Stdin or os.Stderr returns "permission denied".
11+
syscall.EPERM:
12+
return true
13+
}
14+
return false
15+
}

cli/error_posix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//+build !windows
1+
//+build !windows,!plan9
22

33
package cli
44

0 commit comments

Comments
 (0)