diff options
author | Bruno Haible <bruno@clisp.org> | 2023-01-19 21:55:17 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-01-19 21:55:17 +0100 |
commit | 1f79d0e79a4402aaae3ab890420cd70d4308732a (patch) | |
tree | be15860b8201310b698b3f505d98919c83de5d23 /m4/faccessat.m4 | |
parent | 430cd900f19b62994c8cc1b6f1b560b4aed94025 (diff) | |
download | gnulib-1f79d0e79a4402aaae3ab890420cd70d4308732a.tar.gz |
Fix warnings for functions introduced in Android API level 16.
* m4/faccessat.m4 (gl_FUNC_FACCESSAT): Test for faccessat using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
* m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE,
gl_CANONICALIZE_LGPL_SEPARATE): Likewise.
* m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
* m4/tsearch.m4 (gl_FUNC_TSEARCH): Test for tsearch using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
* m4/setenv.m4 (gl_PREREQ_SETENV): Likewise.
Diffstat (limited to 'm4/faccessat.m4')
-rw-r--r-- | m4/faccessat.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/faccessat.m4 b/m4/faccessat.m4 index 934c1f4154..958c4978b7 100644 --- a/m4/faccessat.m4 +++ b/m4/faccessat.m4 @@ -1,4 +1,4 @@ -# serial 10 +# serial 11 # See if we need to provide faccessat replacement. dnl Copyright (C) 2009-2023 Free Software Foundation, Inc. @@ -16,7 +16,7 @@ AC_DEFUN([gl_FUNC_FACCESSAT], dnl Persuade glibc <unistd.h> to declare faccessat(). AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) - AC_CHECK_FUNCS_ONCE([faccessat]) + gl_CHECK_FUNCS_ANDROID([faccessat], [[#include <unistd.h>]]) if test $ac_cv_func_faccessat = no; then HAVE_FACCESSAT=0 else |