* lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
'#undef __need_system_sys_stat_h'.
+2020-02-08 Bruno Haible <bruno@clisp.org>
+
+ fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
+ * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
+ '#undef __need_system_sys_stat_h'.
+
2020-02-08 Bruno Haible <bruno@clisp.org>
fchmodat: Improve cross-compilation guesses.
#include <sys/stat.h>
#undef __need_system_sys_stat_h
-#include <errno.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
#if HAVE_FCHMODAT
static int
orig_fchmodat (int dir, char const *file, mode_t mode, int flags)
}
#endif
+#include <errno.h>
+#include <fcntl.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
#ifdef __osf__
/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
eliminates this include because of the preliminary #include <sys/stat.h>