--- a/dav/system.h Tue Sep 12 21:07:54 2023 +0200 +++ b/dav/system.h Thu Sep 14 18:11:50 2023 +0200 @@ -33,10 +33,13 @@ #include <time.h> #include <sys/types.h> #include <sys/stat.h> -#include <dirent.h> + #ifdef _WIN32 #include <Windows.h> +#define mode_t unsigned int +#else +#include <dirent.h> #endif #ifdef __cplusplus @@ -102,6 +105,8 @@ int sys_symlink(const char *target, const char *linkpath); +int sys_truncate(const char* path, off_t length); + #ifdef __cplusplus } #endif