Problem reported for MSVC-2015 by Gisle Vanem in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00001.html
* lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
(renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
+2017-08-02 Paul Eggert <eggert@cs.ucla.edu>
+
+ renameat2: port to non-renameat platforms
+ Problem reported for MSVC-2015 by Gisle Vanem in:
+ http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00001.html
+ * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
+ (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
+
2017-08-01 Paul Eggert <eggert@cs.ucla.edu>
manywarnings: port to 32-bit GCC bug
#include <errno.h>
#include <stdio.h>
+#include <sys/stat.h>
#include <unistd.h>
#ifdef __linux__
# include <stdbool.h>
# include <stdlib.h>
# include <string.h>
-# include <sys/stat.h>
# include "dirname.h"
# include "openat.h"
/* RENAME_NOREPLACE is the only flag currently supported. */
if (flags & ~RENAME_NOREPLACE)
return errno_fail (ENOTSUP);
- return at_func2 (fd1, file1, fd2, file2,
- flags ? rename_noreplace : rename);
+ return at_func2 (fd1, src, fd2, dst, flags ? rename_noreplace : rename);
#endif /* !HAVE_RENAMEAT */
}