+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.
/* Retrieve information about a FILE stream.
- Copyright (C) 2007-2023 Free Software Foundation, Inc.
+ Copyright (C) 2007-2024 Free Software Foundation, Inc.
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
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
-dnl Copyright (C) 2012-2023 Free Software Foundation, Inc.
+# 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,
dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_FREADAHEAD],
[
- AC_CHECK_FUNCS_ONCE([__freadahead])
+ gl_CHECK_FUNCS_ANDROID([__freadahead], [[#include <stdio_ext.h>]])
])