]> 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 16:53:11 +0000 (17:53 +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 3823b7b1d4e6b951e05472918b1a88701fbfabcf..460ef86974ee53fb024329d2481a5c64a214837b 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 35052c1c19c072775e0794831e757b35d05ba938..f4fc26cbd725ea501330f169c62dded7af6b4a71 100644 (file)
@@ -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 c2352b4616c15211e22ba8b1ba36b5682312678c..df7aaa29feee0b1379a442d75236b3895bd964c1 100644 (file)
@@ -1,4 +1,4 @@
-# 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,
@@ -6,5 +6,5 @@ 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>]])
 ])