mirror of
https://github.com/restic/restic.git
synced 2025-03-16 00:00:05 +01:00
Add freebsd to unixes.
Fix import. Fix cast.
This commit is contained in:
parent
d8a512ccf6
commit
74dcdf3899
1 changed files with 6 additions and 2 deletions
|
@ -1,9 +1,13 @@
|
|||
//
|
||||
|
||||
// +build dragonfly linux netbsd openbsd solaris darwin
|
||||
// +build dragonfly linux netbsd openbsd freebsd solaris darwin
|
||||
|
||||
package restic
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
var mknod = syscall.Mknod
|
||||
|
||||
type statUnix syscall.Stat_t
|
||||
|
@ -12,7 +16,7 @@ func toStatT(i interface{}) (statT, bool) {
|
|||
if i == nil {
|
||||
return nil, false
|
||||
}
|
||||
s, ok := i.(syscall.Stat_t)
|
||||
s, ok := i.(*syscall.Stat_t)
|
||||
if ok && s != nil {
|
||||
return statUnix(*s), true
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue