commit f28e520

grunfink  ·  2024-03-06 20:42:31 +0000 UTC
parents c28ab1e, e608f3a
Merge pull request 'Add defines for time to enable macos builds.' (#148) from andypiper/snac2:macos-build-fix into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/148
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