]> Savannah Git Hosting - gnulib.git/commitdiff
Resolve conflicts for functions introduced in Android API level 34.
authorBruno Haible <bruno@clisp.org>
Thu, 25 Jan 2024 23:18:45 +0000 (00:18 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 31 Jan 2024 17:22:01 +0000 (18:22 +0100)
* 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.

ChangeLog
lib/freadahead.h
m4/freadahead.m4

index 8ef1e705f82f645766060dfa3894c9f8b6e9521f..7748cbed4f1bf952483be30286af2e108fe74954 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
index 4a3275e90cd4afee9c81f9be89b82f555d99f711..f4fc26cbd725ea501330f169c62dded7af6b4a71 100644 (file)
@@ -1,5 +1,5 @@
 /* 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
@@ -32,7 +32,7 @@
 
    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)
index 552056b8d587088e1cda680c52f0ad9eaa532306..df7aaa29feee0b1379a442d75236b3895bd964c1 100644 (file)
@@ -1,10 +1,10 @@
-# 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>]])
 ])