]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 23.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 13:13:24 +0000 (14:13 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 14:57:04 +0000 (15:57 +0100)
* m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Conditionally set REPLACE_MKFIFOAT.
* lib/sys_stat.in.h (mkfifoat): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

ChangeLog
lib/sys_stat.in.h
m4/mkfifoat.m4

index 50cf6768b42403f7b1b49e45f135bc9dfabfa15c..6b292af17860a2eb145498b165c8c52731831f47 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 
        Resolve conflicts for functions introduced in Android API level 23.
 
+       * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Conditionally set REPLACE_MKFIFOAT.
+       * lib/sys_stat.in.h (mkfifoat): Disable _GL_CXXALIASWARN invocation on
+       non-glibc systems.
+
        * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Conditionally set
        REPLACE_STRERROR_R.
        * lib/string.in.h (strerror_r): Disable _GL_CXXALIASWARN invocation on
index 4ebe121a31fbb7cd8ae4b33ac2a7c23d1e38ea46..0c2f39c12bf9ad1f126559e76ce327f5c1d68f0a 100644 (file)
@@ -716,7 +716,9 @@ _GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)
 #  endif
 _GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode));
 # endif
+# if __GLIBC__ >= 2
 _GL_CXXALIASWARN (mkfifoat);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef mkfifoat
 # if HAVE_RAW_DECL_MKFIFOAT
index d7311f2557c9836801860ed952219a7876fe26ce..ed86d5c1979916a8ec821680516edb7e5bedf8d4 100644 (file)
@@ -1,4 +1,4 @@
-# serial 8
+# serial 9
 # See if we need to provide mkfifoat/mknodat replacement.
 
 dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
@@ -62,6 +62,9 @@ AC_DEFUN([gl_FUNC_MKFIFOAT],
   else
     # No known system has mkfifoat but not mknodat
     HAVE_MKFIFOAT=0
+    case "$gl_cv_onwards_func_mkfifoat" in
+      future*) REPLACE_MKFIFOAT=1 ;;
+    esac
     HAVE_MKNODAT=0
     case "$gl_cv_onwards_func_mknodat" in
       future*) REPLACE_MKNODAT=1 ;;