mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-20 13:30:46 +02:00
mount: keep the xattr flag constants off freebsd
x/sys/unix has no XATTR_CREATE or XATTR_REPLACE there, and weedfs_xattr.go is already tagged away from freebsd for that reason. Putting the constants in a !windows file dragged them back in and broke the freebsd build.
This commit is contained in:
@@ -2,18 +2,11 @@
|
||||
|
||||
package mount
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
|
||||
sys "golang.org/x/sys/unix"
|
||||
)
|
||||
import "syscall"
|
||||
|
||||
const (
|
||||
f_RDLCK = syscall.F_RDLCK
|
||||
f_WRLCK = syscall.F_WRLCK
|
||||
f_UNLCK = syscall.F_UNLCK
|
||||
o_ACCMODE = syscall.O_ACCMODE
|
||||
|
||||
xattr_CREATE = sys.XATTR_CREATE
|
||||
xattr_REPLACE = sys.XATTR_REPLACE
|
||||
)
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
//go:build !windows && !freebsd
|
||||
|
||||
package mount
|
||||
|
||||
import sys "golang.org/x/sys/unix"
|
||||
|
||||
const (
|
||||
xattr_CREATE = sys.XATTR_CREATE
|
||||
xattr_REPLACE = sys.XATTR_REPLACE
|
||||
)
|
||||
Reference in New Issue
Block a user