]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 16.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 01:00:51 +0000 (02:00 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 14:56:09 +0000 (15:56 +0100)
* m4/faccessat.m4 (gl_FUNC_FACCESSAT): Conditionally set
REPLACE_FACCESSAT.
* lib/unistd.in.h (faccessat): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/unistd.in.h
m4/faccessat.m4

index e711c34b6cf6050f151582dbee6e111cfcef4f7f..72838038177c327a65a6576137216f8b43f98812 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2023-01-22  Bruno Haible  <bruno@clisp.org>
+
+       Resolve conflicts for functions introduced in Android API level 16.
+
+       * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Conditionally set
+       REPLACE_FACCESSAT.
+       * lib/unistd.in.h (faccessat): Disable _GL_CXXALIASWARN invocation on
+       non-glibc systems.
+
 2023-01-22  Bruno Haible  <bruno@clisp.org>
 
        Resolve conflicts for functions introduced in Android API level 12.
index bc69194fac523da79a4c6eeaf421d15a0ed70a14..df095ba479210060e17a15efb6420e55133115ab 100644 (file)
@@ -925,7 +925,9 @@ _GL_FUNCDECL_SYS (faccessat, int,
 _GL_CXXALIAS_SYS (faccessat, int,
                   (int fd, char const *file, int mode, int flag));
 # endif
+# if __GLIBC__ >= 2
 _GL_CXXALIASWARN (faccessat);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef faccessat
 # if HAVE_RAW_DECL_FACCESSAT
index 958c4978b7d5e6911328e3a65733af64f320b094..a858bfee33d63abf110f690a18be19a32f8f84fc 100644 (file)
@@ -1,4 +1,4 @@
-# serial 11
+# serial 12
 # See if we need to provide faccessat replacement.
 
 dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
@@ -19,6 +19,9 @@ AC_DEFUN([gl_FUNC_FACCESSAT],
   gl_CHECK_FUNCS_ANDROID([faccessat], [[#include <unistd.h>]])
   if test $ac_cv_func_faccessat = no; then
     HAVE_FACCESSAT=0
+    case "$gl_cv_onwards_func_faccessat" in
+      future*) REPLACE_FACCESSAT=1 ;;
+    esac
   else
     case $gl_cv_func_lstat_dereferences_slashed_symlink in
       *yes) ;;