summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-02-12 14:58:24 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-13 15:39:07 +0000
commit35e1ad78fbab93f9efcf5f6608e5bc5569277845 (patch)
tree063283cafad3d3687a4475309807508e0ad3480a
parent3d0100bb44834d079ad0e2c7b9c264a3c5ec131e (diff)
downloadpodman-35e1ad78fbab93f9efcf5f6608e5bc5569277845.tar.gz
podman-35e1ad78fbab93f9efcf5f6608e5bc5569277845.tar.bz2
podman-35e1ad78fbab93f9efcf5f6608e5bc5569277845.zip
Make libpod build on 32-bit systems
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #324 Approved by: rhatdan
-rw-r--r--libpod/finished_32.go16
-rw-r--r--libpod/finished_64.go (renamed from libpod/finished64.go)0
2 files changed, 16 insertions, 0 deletions
diff --git a/libpod/finished_32.go b/libpod/finished_32.go
new file mode 100644
index 000000000..d66974177
--- /dev/null
+++ b/libpod/finished_32.go
@@ -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))
+}
diff --git a/libpod/finished64.go b/libpod/finished_64.go
index 11dbc9181..11dbc9181 100644
--- a/libpod/finished64.go
+++ b/libpod/finished_64.go