]> Savannah Git Hosting - gnulib.git/commitdiff
Fix warnings for functions introduced in Android API level 24.
authorBruno Haible <bruno@clisp.org>
Thu, 19 Jan 2023 20:55:32 +0000 (21:55 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 19 Jan 2023 20:55:32 +0000 (21:55 +0100)
* m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Test for strchrnul using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.

ChangeLog
m4/strchrnul.m4

index 66e71304c837489dc65a223a1e022bf18e60729a..eebfd2bd675d506a196c005fe7e6cf0bfae099c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-01-19  Bruno Haible  <bruno@clisp.org>
+
+       Fix warnings for functions introduced in Android API level 24.
+       * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Test for strchrnul using
+       gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
+
 2023-01-19  Bruno Haible  <bruno@clisp.org>
 
        Fix warnings for functions introduced in Android API level 23.
index 73e0649609b88dae9dc20c1798c30e676f2d7bf1..a38e78531ee3b94c8320b638334305e5702f1470 100644 (file)
@@ -1,4 +1,4 @@
-# strchrnul.m4 serial 10
+# strchrnul.m4 serial 11
 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,
@@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_STRCHRNUL],
   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REQUIRE([gl_STRING_H_DEFAULTS])
-  AC_CHECK_FUNCS([strchrnul])
+  gl_CHECK_FUNCS_ANDROID([strchrnul], [[#include <string.h>]])
   if test $ac_cv_func_strchrnul = no; then
     HAVE_STRCHRNUL=0
   else