mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
Fix build on FreeBSD for Go < 1.12
This commit is contained in:
parent
ca73808649
commit
c1058005c3
@ -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 New Issue
Block a user