commit e608f3a
Andy Piper
·
2024-03-06 17:08:01 +0000 UTC
parent ea4dd9b
Add defines for time to enable macos builds.
1 files changed,
+7,
-0
M
data.c
M
data.c
+7,
-0
1@@ -102,6 +102,13 @@ int srv_open(char *basedir, int auto_upgrade)
2 xs *tmpdir = xs_fmt("%s/tmp", srv_basedir);
3 mkdirx(tmpdir);
4
5+#ifdef __APPLE__
6+/* Apple uses st_atimespec instead of st_atim etc */
7+#define st_atim st_atimespec
8+#define st_ctim st_ctimespec
9+#define st_mtim st_mtimespec
10+#endif
11+
12 #ifdef __OpenBSD__
13 char *v = xs_dict_get(srv_config, "disable_openbsd_security");
14