diff options
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 | ||