Skip to content

Commit

Permalink
syscall.ENODATA is not defined on unsupported OS (#69)
Browse files Browse the repository at this point in the history
ENODATA may not be defined use a dummy value from netbsd errno
  • Loading branch information
harshavardhana authored Sep 16, 2022
1 parent 83e010c commit 87ba458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
run: |
GOOS=freebsd go build
GOOS=windows go build
GOOS=openbsd go build
go build -v .
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion xattr_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const (
// We need to use the default for non supported operating systems
ENOATTR = syscall.ENODATA
ENOATTR = syscall.Errno(0x59)
)

// XATTR_SUPPORTED will be true if the current platform is supported
Expand Down

0 comments on commit 87ba458

Please sign in to comment.