diff options
| author | 2024-03-06 20:42:31 +0000 | |
|---|---|---|
| committer | 2024-03-06 20:42:31 +0000 | |
| commit | f28e52032215722dc6e0e3fe0543b9699d5a87bf (patch) | |
| tree | 61043eeae655476b2a337e94629ad504eabb6e25 /data.c | |
| parent | mastoapi: Added a dummy streaming_api URL. (diff) | |
| parent | Add defines for time to enable macos builds. (diff) | |
| download | snac2-f28e52032215722dc6e0e3fe0543b9699d5a87bf.tar.gz snac2-f28e52032215722dc6e0e3fe0543b9699d5a87bf.tar.xz snac2-f28e52032215722dc6e0e3fe0543b9699d5a87bf.zip | |
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
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) | |||
| 102 | xs *tmpdir = xs_fmt("%s/tmp", srv_basedir); | 102 | xs *tmpdir = xs_fmt("%s/tmp", srv_basedir); |
| 103 | mkdirx(tmpdir); | 103 | mkdirx(tmpdir); |
| 104 | 104 | ||
| 105 | #ifdef __APPLE__ | ||
| 106 | /* Apple uses st_atimespec instead of st_atim etc */ | ||
| 107 | #define st_atim st_atimespec | ||
| 108 | #define st_ctim st_ctimespec | ||
| 109 | #define st_mtim st_mtimespec | ||
| 110 | #endif | ||
| 111 | |||
| 105 | #ifdef __OpenBSD__ | 112 | #ifdef __OpenBSD__ |
| 106 | char *v = xs_dict_get(srv_config, "disable_openbsd_security"); | 113 | char *v = xs_dict_get(srv_config, "disable_openbsd_security"); |
| 107 | 114 | ||