Merge pull request #219 from harshavardhana/xattr_build

xattr: Disallow build on non linux platforms
This commit is contained in:
Michael Crosby 2014-10-15 15:39:56 -07:00
commit 122573a738
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
// +build !linux
package xattr
func Listxattr(path string) ([]string, error) {
return nil, ErrNotSupportedPlatform
}
func Getxattr(path, attr string) (string, error) {
return "", ErrNotSupportedPlatform
}
func Setxattr(path, xattr, value string) error {
return ErrNotSupportedPlatform
}