Sun, 10 Jun 2018 13:24:30 +0200
fixes build on non-windows
dav/system.c | file | annotate | diff | comparison | revisions |
--- a/dav/system.c Sun Jun 10 13:22:04 2018 +0200 +++ b/dav/system.c Sun Jun 10 13:24:30 2018 +0200 @@ -30,6 +30,12 @@ #include <stdlib.h> #include <string.h> #include <dirent.h> +#include <sys/stat.h> +#include <sys/types.h> + +#ifndef _WIN32 +#include <unistd.h> +#endif #include "system.h" @@ -95,6 +101,7 @@ int sys_mkdir(const char *path) { return mkdir(path, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); +} #else /* ---------- Windows implementation ---------- */