On 05/12/11 01:38, Markus Duft wrote: > this doesn't help, and doesn't even compile, as interix also doesn't have > sync()
OK, how about this patch to utimens.c instead? diff --git a/lib/utimens.c b/lib/utimens.c index c190411..f738c68 100644 --- a/lib/utimens.c +++ b/lib/utimens.c @@ -58,6 +58,13 @@ struct utimbuf # define REPLACE_FUNC_STAT_FILE 0 #endif +/* Interix's NFS implementation seems particularly bug-prone; see + <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00293.html>. */ +#if __INTERIX +# define HAVE_BUGGY_NFS_TIME_STAMPS 1 +static void sync (void) {} +#endif + #if HAVE_UTIMENSAT || HAVE_FUTIMENS /* Cache variables for whether the utimensat syscall works; used to avoid calling the syscall if we know it will just fail with ENOSYS,