Skip to content

Commit 87ba458

Browse files
syscall.ENODATA is not defined on unsupported OS (#69)
ENODATA may not be defined use a dummy value from netbsd errno
1 parent 83e010c commit 87ba458

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
run: |
2222
GOOS=freebsd go build
2323
GOOS=windows go build
24+
GOOS=openbsd go build
2425
go build -v .
2526
2627
- name: Test

xattr_unsupported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
const (
1212
// We need to use the default for non supported operating systems
13-
ENOATTR = syscall.ENODATA
13+
ENOATTR = syscall.Errno(0x59)
1414
)
1515

1616
// XATTR_SUPPORTED will be true if the current platform is supported

0 commit comments

Comments
 (0)