* m4/freadahead.m4 (gl_FUNC_FREADAHEAD): Test for __freadahead using
gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
* lib/freadahead.h: Update comment.
+2024-01-25 Bruno Haible <bruno@clisp.org>
+
+ Resolve conflicts for functions introduced in Android API level 34.
+
+ * m4/freadahead.m4 (gl_FUNC_FREADAHEAD): Test for __freadahead using
+ gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.
+ * lib/freadahead.h: Update comment.
+
2024-01-25 Bruno Haible <bruno@clisp.org>
Resolve conflicts for functions introduced in Android API level 30.
STREAM must not be wide-character oriented. */
-#if HAVE___FREADAHEAD /* musl libc */
+#if HAVE___FREADAHEAD /* musl libc, Android API level ≥ 33 */
# include <stdio_ext.h>
# define freadahead(stream) __freadahead (stream)
-# freadahead.m4 serial 1
+# freadahead.m4 serial 2
dnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_FUNC_FREADAHEAD],
[
- AC_CHECK_FUNCS_ONCE([__freadahead])
+ gl_CHECK_FUNCS_ANDROID([__freadahead], [[#include <stdio_ext.h>]])
])