make fstatat fill in old time32 stat fields too
[musl] / src / unistd / renameat.c
index 1257482..c3b40a2 100644 (file)
@@ -3,5 +3,9 @@
 
 int renameat(int oldfd, const char *old, int newfd, const char *new)
 {
+#ifdef SYS_renameat
        return syscall(SYS_renameat, oldfd, old, newfd, new);
+#else
+       return syscall(SYS_renameat2, oldfd, old, newfd, new, 0);
+#endif
 }