Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-cmds
Commits
0cd468aa
Unverified
Commit
0cd468aa
authored
Aug 01, 2020
by
Will
Committed by
GitHub
Aug 01, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #199 from fhs/plan9
Fix build on Plan 9
parents
6d43ee1d
63d16098
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
cli/error_plan9.go
cli/error_plan9.go
+15
-0
cli/error_posix.go
cli/error_posix.go
+1
-1
No files found.
cli/error_plan9.go
0 → 100644
View file @
0cd468aa
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
}
cli/error_posix.go
View file @
0cd468aa
//+build !windows
//+build !windows
,!plan9
package
cli
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment