summaryrefslogtreecommitdiff
path: root/m4/fdatasync.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-01-19 21:55:13 +0100
committerBruno Haible <bruno@clisp.org>2023-01-19 21:55:13 +0100
commit39bfcd72a808c3091b39d797c9576f26c197c3df (patch)
treec300895a169d93820ba9d53bf146b10af5abd983 /m4/fdatasync.m4
parent6c4ed27dce71dc788efa6ef6430849d4bb5bf39d (diff)
downloadgnulib-39bfcd72a808c3091b39d797c9576f26c197c3df.tar.gz
Fix warnings for functions introduced in Android API level 9.
* m4/pipe2.m4 (gl_FUNC_PIPE2): Test for pipe2 using gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE. * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Update comments.
Diffstat (limited to 'm4/fdatasync.m4')
-rw-r--r--m4/fdatasync.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/fdatasync.m4 b/m4/fdatasync.m4
index 8c5cc4fdaf..201d7ffb27 100644
--- a/m4/fdatasync.m4
+++ b/m4/fdatasync.m4
@@ -1,4 +1,4 @@
-# fdatasync.m4 serial 7
+# fdatasync.m4 serial 8
dnl Copyright (C) 2008-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -17,6 +17,7 @@ AC_DEFUN([gl_FUNC_FDATASYNC],
if test $ac_cv_have_decl_fdatasync = no; then
HAVE_DECL_FDATASYNC=0
dnl Mac OS X 10.7 has fdatasync but does not declare it.
+ dnl Likewise Android with API level < 9. Cf. gl_CHECK_FUNCS_ANDROID.
AC_CHECK_FUNCS([fdatasync])
if test $ac_cv_func_fdatasync = no; then
HAVE_FDATASYNC=0