Resolve conflicts for functions introduced in Android API level 28.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 13:44:44 +0000 (14:44 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 14:57:27 +0000 (15:57 +0100)
* m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Conditionally set
REPLACE_ALIGNED_ALLOC.
* m4/getrandom.m4 (gl_FUNC_GETRANDOM): Conditionally set
REPLACE_GETRANDOM.

ChangeLog
m4/aligned_alloc.m4
m4/getrandom.m4

index 5d89546b44b0d76c8558acc88d110fd50a889a9b..d06ffacce2d1740a7b30bd40cc7469ef1d3c6333 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,11 @@
 
        Resolve conflicts for functions introduced in Android API level 28.
 
+       * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Conditionally set
+       REPLACE_ALIGNED_ALLOC.
+       * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Conditionally set
+       REPLACE_GETRANDOM.
+
        * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Conditionally set
        REPLACE_GETLOGIN_R.
        * lib/unistd.in.h (getlogin_r): Disable _GL_CXXALIASWARN invocation on
index d088701dbc7edd017cb022b690c8f4c597ce79c6..8b4c10102e1e8f08e3197155fd71c0c228949952 100644 (file)
@@ -1,4 +1,4 @@
-# aligned_alloc.m4 serial 4
+# aligned_alloc.m4 serial 5
 dnl Copyright (C) 2020-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -44,5 +44,8 @@ AC_DEFUN([gl_FUNC_ALIGNED_ALLOC],
   else
     dnl The system does not have aligned_alloc.
     HAVE_ALIGNED_ALLOC=0
+    case "$gl_cv_onwards_func_aligned_alloc" in
+      future*) REPLACE_ALIGNED_ALLOC=1 ;;
+    esac
   fi
 ])
index c508f1a55c3a293a4b171a2aca4dcd46104ae2f5..7b7f9ce2ee87aeab9c284ce30854f669cc1acd09 100644 (file)
@@ -1,4 +1,4 @@
-# getrandom.m4 serial 10
+# getrandom.m4 serial 11
 dnl Copyright 2020-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -18,6 +18,9 @@ AC_DEFUN([gl_FUNC_GETRANDOM],
     ]])
   if test "$ac_cv_func_getrandom" != yes; then
     HAVE_GETRANDOM=0
+    case "$gl_cv_onwards_func_getrandom" in
+      future*) REPLACE_GETRANDOM=1 ;;
+    esac
   else
     dnl On Solaris 11.4 the return type is 'int', not 'ssize_t'.
     AC_CACHE_CHECK([whether getrandom is compatible with its GNU+BSD signature],