mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 08:25:40 +00:00
Make libpod build on 32-bit systems
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #324 Approved by: rhatdan
This commit is contained in:
parent
3d0100bb44
commit
35e1ad78fb
2 changed files with 16 additions and 0 deletions
16
libpod/finished_32.go
Normal file
16
libpod/finished_32.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// +build arm 386
|
||||
|
||||
package libpod
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Get created time of a file
|
||||
// Only works on 32-bit OSes
|
||||
func getFinishedTime(fi os.FileInfo) time.Time {
|
||||
st := fi.Sys().(*syscall.Stat_t)
|
||||
return time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue