diff --git a/src/host_fst.c b/src/host_fst.c index 9bd14d8..ebd83e1 100644 --- a/src/host_fst.c +++ b/src/host_fst.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "defc.h" #include "gsos.h" @@ -21,6 +22,11 @@ #include #endif +#ifdef __linux__ +#include + +#endif + #ifdef _WIN32 #include @@ -151,6 +157,8 @@ static word32 map_errno() { return pathNotFound; case ENOMEM: return outOfMem; + case EEXIST: + return dupPathname; default: return drvrIOError; } @@ -533,7 +541,7 @@ static word32 set_file_info(const char *path, struct file_info *fi) { if (i) ok = setattrlist(path, &list, dates, i * sizeof(struct timespec), 0); return 0; } -#elif definde _WIN32 +#elif defined _WIN32 static void UnixTimeToFileTime(time_t t, LPFILETIME pft)