utimens: cache whether utimensat syscall works
[pspp] / lib / stdio.in.h
index 3777e85d32b6a3574c49890a779803e3b64fbea7..7a0bc12d39321780d4223093678d9207400b12b8 100644 (file)
@@ -445,7 +445,11 @@ extern int rename (const char *old, const char *new);
 #endif
 
 #if @GNULIB_RENAMEAT@
-# if !@HAVE_RENAMEAT@
+# if @REPLACE_RENAMEAT@
+#  undef renameat
+#  define renameat rpl_renameat
+# endif
+# if !@HAVE_RENAMEAT@ || @REPLACE_RENAMEAT@
 extern int renameat (int fd1, char const *file1, int fd2, char const *file2);
 # endif
 #elif defined GNULIB_POSIXCHECK