From: Bruno Haible Date: Thu, 19 Jan 2023 20:55:37 +0000 (+0100) Subject: Fix warnings for functions introduced in Android API level 28. X-Git-Tag: v1.0~1802 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a1a659eee27760b047a8fb8b2f605290e1154a99;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index a39cb4c603..081efd1494 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-01-19 Bruno Haible + + 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 Fix warnings for functions introduced in Android API level 26. diff --git a/m4/glob.m4 b/m4/glob.m4 index 847f88038f..9365f3362d 100644 --- a/m4/glob.m4 +++ b/m4/glob.m4 @@ -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 ]]) if test $ac_cv_func_glob = no; then HAVE_GLOB=0 else