forked from TrueCloudLab/restic
Fix build on FreeBSD for Go < 1.12
This commit is contained in:
parent
ca73808649
commit
c1058005c3
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
// +build freebsd,go1.12
|
||||
|
||||
package restic
|
||||
|
||||
import "syscall"
|
||||
|
|
17
internal/restic/node_freebsd_go111.go
Normal file
17
internal/restic/node_freebsd_go111.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
// +build freebsd,!go1.12
|
||||
|
||||
package restic
|
||||
|
||||
import "syscall"
|
||||
|
||||
func (node Node) restoreSymlinkTimestamps(path string, utimes [2]syscall.Timespec) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (node Node) device() int {
|
||||
return int(node.Device)
|
||||
}
|
||||
|
||||
func (s statUnix) atim() syscall.Timespec { return s.Atimespec }
|
||||
func (s statUnix) mtim() syscall.Timespec { return s.Mtimespec }
|
||||
func (s statUnix) ctim() syscall.Timespec { return s.Ctimespec }
|
Loading…
Reference in a new issue