* m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test for ttyname_r 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 8.
+ * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test for ttyname_r using
+ gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
+
2023-01-19 Bruno Haible <bruno@clisp.org>
fts: Document this module.
-# ttyname_r.m4 serial 11
+# ttyname_r.m4 serial 12
dnl Copyright (C) 2010-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,
HAVE_DECL_TTYNAME_R=0
fi
- AC_CHECK_FUNCS([ttyname_r])
+ gl_CHECK_FUNCS_ANDROID([ttyname_r], [[#include <unistd.h>]])
if test $ac_cv_func_ttyname_r = no; then
HAVE_TTYNAME_R=0
else