diff options
author | Andy Piper <andypiper@users.noreply.github.com> | 2024-03-06 17:08:01 +0000 |
---|---|---|
committer | Andy Piper <andypiper@users.noreply.github.com> | 2024-03-06 17:08:01 +0000 |
commit | e608f3aff1bc8bfa8fac0a857714451b55c4e60a (patch) | |
tree | deb844c506099b8e9c5285adf740acaac60f6270 /data.c | |
parent | ea4dd9bed79a517ff38aca4a845194e1dd9a715e (diff) |
Add defines for time to enable macos builds.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"); |