From e608f3aff1bc8bfa8fac0a857714451b55c4e60a Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 6 Mar 2024 17:08:01 +0000 Subject: [PATCH] Add defines for time to enable macos builds. --- data.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data.c b/data.c index d006200..4d9824a 100644 --- a/data.c +++ b/data.c @@ -102,6 +102,13 @@ int srv_open(char *basedir, int auto_upgrade) xs *tmpdir = xs_fmt("%s/tmp", srv_basedir); mkdirx(tmpdir); +#ifdef __APPLE__ +/* Apple uses st_atimespec instead of st_atim etc */ +#define st_atim st_atimespec +#define st_ctim st_ctimespec +#define st_mtim st_mtimespec +#endif + #ifdef __OpenBSD__ char *v = xs_dict_get(srv_config, "disable_openbsd_security");