mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Fix OS X build
- Explicitly cast statfs_t members to int64 (this structure is platform-specific) - Add pass-through New methods to Darwin SHA package - Move scsi pkg types to common translation unit (package was empty) - Add stub implementations mount/disk ops for OS X
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package sha512
|
||||
|
||||
import (
|
||||
"hash"
|
||||
"io"
|
||||
|
||||
"crypto/sha512"
|
||||
@@ -61,3 +62,8 @@ func SumStream(reader io.Reader) ([sha512.Size]byte, error) {
|
||||
copy(returnValue[:], sumSlice)
|
||||
return returnValue, err
|
||||
}
|
||||
|
||||
// New returns a new hash.Hash computing SHA512.
|
||||
func New() hash.Hash {
|
||||
return sha512.New()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user