From bec23685136f78a24a78a6d8840d3865ffbccea9 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 3 Apr 2004 22:13:01 +0000 Subject: Unix porting. --- src/posix.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/posix.c') diff --git a/src/posix.c b/src/posix.c index 0586715..91bb43a 100644 --- a/src/posix.c +++ b/src/posix.c @@ -21,6 +21,20 @@ #include "usuals.h" #include "ntfs.h" +#include +#include + +#if TIME_WITH_SYS_TIME +# include +# include +#else +# if HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif + /* NOTE: This file assumes that FC_WIDE is off */ /* The NTFS file time is a a 64-bit value representing the @@ -80,7 +94,7 @@ void setFileAttributes(fchar_t* filename, uint32 flags) } else { - if(chmod(filename, st.st_mode & ~(S_IWUSR | S_IWGRP | S_IOTH)) == -1) + if(chmod(filename, st.st_mode & ~(S_IWUSR | S_IWGRP | S_IWOTH)) == -1) warn("couldn't set file attributes for: " FC_PRINTF, encoded); } } -- cgit v1.2.3