summaryrefslogtreecommitdiff
path: root/m4/symlinkat.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-01-22 12:34:17 +0100
committerBruno Haible <bruno@clisp.org>2023-01-22 15:56:44 +0100
commit959415ca4a76b25f254082716a8222f6be140955 (patch)
treef9bdc11dec15315fb7ae1bfcc901907bcdf57c19 /m4/symlinkat.m4
parent09730bf22348989d457861b85ffab15eb0f294cb (diff)
downloadgnulib-959415ca4a76b25f254082716a8222f6be140955.tar.gz
Resolve conflicts for functions introduced in Android API level 21.
* m4/execvpe.m4 (gl_FUNC_EXECVPE): Conditionally set REPLACE_EXECVPE. * m4/linkat.m4 (gl_FUNC_LINKAT): Conditionally set REPLACE_LINKAT. * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Conditionally set REPLACE_READLINKAT. * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Conditionally set REPLACE_SYMLINKAT. * m4/truncate.m4 (gl_FUNC_TRUNCATE): Conditionally set REPLACE_TRUNCATE. * lib/unistd.in.h (execvpe, linkat, readlinkat, symlinkat, truncate): Disable _GL_CXXALIASWARN invocation on non-glibc systems.
Diffstat (limited to 'm4/symlinkat.m4')
-rw-r--r--m4/symlinkat.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/symlinkat.m4 b/m4/symlinkat.m4
index d12f91997c..dc3dd323aa 100644
--- a/m4/symlinkat.m4
+++ b/m4/symlinkat.m4
@@ -1,4 +1,4 @@
-# serial 11
+# serial 12
# See if we need to provide symlinkat replacement.
dnl Copyright (C) 2009-2023 Free Software Foundation, Inc.
@@ -17,6 +17,9 @@ AC_DEFUN([gl_FUNC_SYMLINKAT],
gl_CHECK_FUNCS_ANDROID([symlinkat], [[#include <unistd.h>]])
if test $ac_cv_func_symlinkat = no; then
HAVE_SYMLINKAT=0
+ case "$gl_cv_onwards_func_symlinkat" in
+ future*) REPLACE_SYMLINKAT=1 ;;
+ esac
else
AC_CACHE_CHECK([whether symlinkat handles trailing slash correctly],
[gl_cv_func_symlinkat_works],