fixes build on non-windows

Sun, 10 Jun 2018 13:24:30 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 10 Jun 2018 13:24:30 +0200
changeset 413
241db665477a
parent 412
dc74f736aea1
child 414
ea50585ec9d9

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 ---------- */

mercurial