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

ChangeLog
m4/glob.m4

index a39cb4c603740ba3f3af362fcc4beb87553a498a..081efd1494045424b3832fdab93283750ab7156e 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 28.
+       * m4/glob.m4 (gl_GLOB): Test for glob using gl_CHECK_FUNCS_ANDROID
+       instead of AC_CHECK_FUNCS_ONCE.
+
 2023-01-19  Bruno Haible  <bruno@clisp.org>
 
        Fix warnings for functions introduced in Android API level 26.
index 847f88038fba3ff2aaa45b326a1dfce6408a0969..9365f3362d8b2e566ac10bd26e5c18ae0fe99abf 100644 (file)
@@ -1,4 +1,4 @@
-# glob.m4 serial 28
+# glob.m4 serial 29
 dnl Copyright (C) 2005-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,
@@ -12,7 +12,8 @@ AC_DEFUN([gl_GLOB],
 [
   AC_REQUIRE([gl_GLOB_H])
 
-  AC_CHECK_FUNCS_ONCE([glob glob_pattern_p])
+  AC_CHECK_FUNCS_ONCE([glob_pattern_p])
+  gl_CHECK_FUNCS_ANDROID([glob], [[#include <glob.h>]])
   if test $ac_cv_func_glob = no; then
     HAVE_GLOB=0
   else