From: Bruno Haible Date: Thu, 25 Jan 2024 23:18:45 +0000 (+0100) Subject: Resolve conflicts for functions introduced in Android API level 34. X-Git-Tag: v1.0~493 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=22c809356688118b5fcc96229788150ed780a747;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 46dcdf9c4e..5e7b4d90b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-01-25 Bruno Haible + + 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 Doc regarding functions introduced in Android API level 33. diff --git a/lib/freadahead.h b/lib/freadahead.h index 35052c1c19..f4fc26cbd7 100644 --- a/lib/freadahead.h +++ b/lib/freadahead.h @@ -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 # define freadahead(stream) __freadahead (stream) diff --git a/m4/freadahead.m4 b/m4/freadahead.m4 index c2352b4616..df7aaa29fe 100644 --- a/m4/freadahead.m4 +++ b/m4/freadahead.m4 @@ -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 ]]) ])