From 0e9008b68dca08efcd93a3fb52905aac4404c0ea Mon Sep 17 00:00:00 2001 From: Ivan Markin Date: Sat, 10 Feb 2018 16:40:02 +0000 Subject: [PATCH] Make sysx compile on OpenBSD; mark OpenBSD unsupported for xattr Signed-off-by: Ivan Markin --- sysx/xattr_openbsd.go | 7 +++++++ sysx/xattr_unsupported.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 sysx/xattr_openbsd.go diff --git a/sysx/xattr_openbsd.go b/sysx/xattr_openbsd.go new file mode 100644 index 00000000..72361997 --- /dev/null +++ b/sysx/xattr_openbsd.go @@ -0,0 +1,7 @@ +package sysx + +import ( + "errors" +) + +var unsupported = errors.New("extended attributes unsupported on OpenBSD") diff --git a/sysx/xattr_unsupported.go b/sysx/xattr_unsupported.go index a8dd9f24..c8389bc1 100644 --- a/sysx/xattr_unsupported.go +++ b/sysx/xattr_unsupported.go @@ -1,4 +1,4 @@ -// +build freebsd solaris +// +build freebsd openbsd solaris package sysx