]> Savannah Git Hosting - gnulib.git/commitdiff
renameat, renameatu: Fix warning on Android.
authorBruno Haible <bruno@clisp.org>
Tue, 10 Jan 2023 11:31:56 +0000 (12:31 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 10 Jan 2023 11:53:17 +0000 (12:53 +0100)
* m4/renameat.m4 (gl_FUNC_RENAMEAT): Test for renameat2 using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.

ChangeLog
m4/renameat.m4

index b2ca74f922abca9d98d21bb29126134f5bebfdba..59eec4d62ce5602794b1c566bd5a9a1e3b76d9c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-10  Bruno Haible  <bruno@clisp.org>
+
+       renameat, renameatu: Fix warning on Android.
+       * m4/renameat.m4 (gl_FUNC_RENAMEAT): Test for renameat2 using
+       gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
+
 2023-01-10  Bruno Haible  <bruno@clisp.org>
 
        memset_explicit tests: Fix signature check.
index 7e38e436a32fe3d6ce3c1a73c703f20fd281f23c..37805786636758e0f7b88e140cae5e4688d10e99 100644 (file)
@@ -1,4 +1,4 @@
-# serial 3
+# serial 4
 # See if we need to provide renameat replacement.
 
 dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
@@ -15,11 +15,12 @@ AC_DEFUN([gl_FUNC_RENAMEAT],
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   AC_CHECK_HEADERS([linux/fs.h])
-  AC_CHECK_FUNCS_ONCE([renameat renameat2])
+  AC_CHECK_FUNCS_ONCE([renameat])
   if test $ac_cv_func_renameat = no; then
     HAVE_RENAMEAT=0
   elif test $REPLACE_RENAME = 1; then
     dnl Solaris 9 and 10 have the same bugs in renameat as in rename.
     REPLACE_RENAMEAT=1
   fi
+  gl_CHECK_FUNCS_ANDROID([renameat2], [[#include <stdio.h>]])
 ])