krz/skunky-art
Alternative privacy frontend for DeviantArt.
clone: git clone https://gitbay.org/krz/skunky-art.git
6b8e23001283acb95d10c275155e9cb83b15f598
verified · cmc
author: Christian Cleberg <hello@cleberg.net> · 2026-07-15T01:21:21Z
app/stat-darwin.go | 15 +++++++++++++++ app/stat.go | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) new file mode 100644 @@ -0,0 +1,15 @@ +//go:build darwin +// +build darwin + +package app + +import ( + "syscall" + "time" +) + +// macOS names the ctime field Ctimespec rather than Ctim, so it needs its own +// variant to let the project build and test on a Mac (deploys are Linux). +func statTime(stat *syscall.Stat_t) int64 { + return time.Unix(stat.Ctimespec.Unix()).UnixMilli() +} @@ -1,5 +1,5 @@ -//go:build !freebsd -// +build !freebsd +//go:build !freebsd && !darwin +// +build !freebsd,!darwin package app