summaryrefslogtreecommitdiff
path: root/m4/utimensat.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-01-22 01:46:21 +0100
committerBruno Haible <bruno@clisp.org>2023-01-22 15:56:07 +0100
commit7d2fc0f518407f69846a4c58cd775689b3465bc6 (patch)
tree0b4ca89814991df02fca58a901974ef638924aa6 /m4/utimensat.m4
parentca227be2d8649a2a55a4953a97db4f992895440b (diff)
downloadgnulib-7d2fc0f518407f69846a4c58cd775689b3465bc6.tar.gz
Resolve conflicts for functions introduced in Android API level 12.
* m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Conditionally set REPLACE_UTIMENSAT. * lib/sys_stat.in.h (utimensat): Disable _GL_CXXALIASWARN invocation on non-glibc systems.
Diffstat (limited to 'm4/utimensat.m4')
-rw-r--r--m4/utimensat.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/utimensat.m4 b/m4/utimensat.m4
index 1d3db2efa2..1a670bb7b7 100644
--- a/m4/utimensat.m4
+++ b/m4/utimensat.m4
@@ -1,4 +1,4 @@
-# serial 10
+# serial 11
# See if we need to provide utimensat replacement.
dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
@@ -16,6 +16,9 @@ AC_DEFUN([gl_FUNC_UTIMENSAT],
gl_CHECK_FUNCS_ANDROID([utimensat], [[#include <sys/stat.h>]])
if test $ac_cv_func_utimensat = no; then
HAVE_UTIMENSAT=0
+ case "$gl_cv_onwards_func_utimensat" in
+ future*) REPLACE_UTIMENSAT=1 ;;
+ esac
else
AC_CACHE_CHECK([whether utimensat works],
[gl_cv_func_utimensat_works],