]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 24.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 13:15:21 +0000 (14:15 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Jan 2023 14:57:09 +0000 (15:57 +0100)
* m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Conditionally set
REPLACE_STRCHRNUL.

ChangeLog
m4/strchrnul.m4

index 0239e388cd1ca21140a2d7a833ae4b87f4bab0a4..905fd782d88bcb956da8fcafd84aed56eb4f81f4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-22  Bruno Haible  <bruno@clisp.org>
+
+       Resolve conflicts for functions introduced in Android API level 24.
+       * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Conditionally set
+       REPLACE_STRCHRNUL.
+
 2023-01-22  Bruno Haible  <bruno@clisp.org>
 
        Resolve conflicts for functions introduced in Android API level 23.
index a38e78531ee3b94c8320b638334305e5702f1470..9b9ab11ada2657cd3848a42bd090fc728cc5889c 100644 (file)
@@ -1,4 +1,4 @@
-# strchrnul.m4 serial 11
+# strchrnul.m4 serial 12
 dnl Copyright (C) 2003, 2007, 2009-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,
@@ -13,6 +13,9 @@ AC_DEFUN([gl_FUNC_STRCHRNUL],
   gl_CHECK_FUNCS_ANDROID([strchrnul], [[#include <string.h>]])
   if test $ac_cv_func_strchrnul = no; then
     HAVE_STRCHRNUL=0
+    case "$gl_cv_onwards_func_strchrnul" in
+      future*) REPLACE_STRCHRNUL=1 ;;
+    esac
   else
     AC_CACHE_CHECK([whether strchrnul works],
       [gl_cv_func_strchrnul_works],