]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 21.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 11:30:17 +0000 (12:30 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 14:56:42 +0000 (15:56 +0100)
* m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Conditionally set REPLACE_MKNODAT.
* lib/sys_stat.in.h (mknodat): Disable _GL_CXXALIASWARN invocation on
non-glibc systems.

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

index 092a3b50d5e36fbfa566050c5dd6619244ec919e..33b820b8889317a4379edb1a3588a71e188472e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 
        Resolve conflicts for functions introduced in Android API level 21.
 
+       * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Conditionally set REPLACE_MKNODAT.
+       * lib/sys_stat.in.h (mknodat): Disable _GL_CXXALIASWARN invocation on
+       non-glibc systems.
+
        * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Conditionally set REPLACE_STPNCPY.
        * lib/string.in.h (stpncpy): Disable _GL_CXXALIASWARN invocation on
        non-glibc systems.
index 7d92239dd1853f49d192ac049f74a59565ad0576..4ebe121a31fbb7cd8ae4b33ac2a7c23d1e38ea46 100644 (file)
@@ -773,7 +773,9 @@ _GL_FUNCDECL_SYS (mknodat, int,
 _GL_CXXALIAS_SYS (mknodat, int,
                   (int fd, char const *file, mode_t mode, dev_t dev));
 # endif
+# if __GLIBC__ >= 2
 _GL_CXXALIASWARN (mknodat);
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef mknodat
 # if HAVE_RAW_DECL_MKNODAT
index e9ed96241576789319b1d3f7117abd28e1b3c325..d7311f2557c9836801860ed952219a7876fe26ce 100644 (file)
@@ -1,4 +1,4 @@
-# serial 7
+# serial 8
 # See if we need to provide mkfifoat/mknodat replacement.
 
 dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
@@ -63,5 +63,8 @@ AC_DEFUN([gl_FUNC_MKFIFOAT],
     # No known system has mkfifoat but not mknodat
     HAVE_MKFIFOAT=0
     HAVE_MKNODAT=0
+    case "$gl_cv_onwards_func_mknodat" in
+      future*) REPLACE_MKNODAT=1 ;;
+    esac
   fi
 ])