mirror of
https://github.com/minio/minio.git
synced 2025-11-26 04:26:12 -05:00
fix: build on OpenBSD (#11384)
github.com/ncw/directio doesn't support OpenBSD, but OpenBSD has syscall.Fsync. (It also has fdatasync: https://man.openbsd.org/fdatasync but apparently Golang can't call it).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// +build !linux,!netbsd,!freebsd,!darwin,!openbsd
|
||||
// +build !linux,!netbsd,!freebsd,!darwin
|
||||
|
||||
/*
|
||||
* Minio Cloud Storage, (C) 2019-2020 Minio, Inc.
|
||||
@@ -62,8 +62,3 @@ func DisableDirectIO(f *os.File) error {
|
||||
func AlignedBlock(BlockSize int) []byte {
|
||||
return make([]byte, BlockSize)
|
||||
}
|
||||
|
||||
// Fdatasync is a no-op
|
||||
func Fdatasync(f *os.File) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user