mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 22:45:05 +00:00
Add defines for time to enable macos builds.
This commit is contained in:
parent
ea4dd9bed7
commit
e608f3aff1
1 changed files with 7 additions and 0 deletions
7
data.c
7
data.c
|
@ -102,6 +102,13 @@ int srv_open(char *basedir, int auto_upgrade)
|
||||||
xs *tmpdir = xs_fmt("%s/tmp", srv_basedir);
|
xs *tmpdir = xs_fmt("%s/tmp", srv_basedir);
|
||||||
mkdirx(tmpdir);
|
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__
|
#ifdef __OpenBSD__
|
||||||
char *v = xs_dict_get(srv_config, "disable_openbsd_security");
|
char *v = xs_dict_get(srv_config, "disable_openbsd_security");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue