Skip to content

Commit

Permalink
Merge pull request #43 from fkorotkov/freebsd-arm32
Browse files Browse the repository at this point in the history
FreeBSD ARM compilation fix
  • Loading branch information
otiai10 authored Jan 1, 2021
2 parents 164f56a + 61cf4bd commit bdad3b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stat_times_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ func getTimeSpec(info os.FileInfo) timespec {
stat := info.Sys().(*syscall.Stat_t)
times := timespec{
Mtime: info.ModTime(),
Atime: time.Unix(stat.Atimespec.Sec, stat.Atimespec.Nsec),
Ctime: time.Unix(stat.Ctimespec.Sec, stat.Ctimespec.Nsec),
Atime: time.Unix(int64(stat.Atimespec.Sec), int64(stat.Atimespec.Nsec)),
Ctime: time.Unix(int64(stat.Ctimespec.Sec), int64(stat.Ctimespec.Nsec)),
}
return times
}

0 comments on commit bdad3b4

Please sign in to comment.