summaryrefslogtreecommitdiff
path: root/modules/mkostemps
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-01-22 12:43:06 +0100
committerBruno Haible <bruno@clisp.org>2023-01-22 15:56:51 +0100
commit6f43ec52f0b6c548a974ec46244292106fc48bfe (patch)
tree2ded94940d011fcab4af543ed665bbdff0f5ec76 /modules/mkostemps
parentfacb752a0f9b4d609d678791a7a9aecb580ff6e2 (diff)
downloadgnulib-6f43ec52f0b6c548a974ec46244292106fc48bfe.tar.gz
Resolve conflicts for functions introduced in Android API level 23.
* lib/stdlib.in.h (mkostemp): Consider REPLACE_MKOSTEMP. Disable _GL_CXXALIASWARN invocation on non-glibc systems. (mkostemps): Consider REPLACE_MKOSTEMPS. Disable _GL_CXXALIASWARN invocation on non-glibc systems. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MKOSTEMP, REPLACE_MKOSTEMPS. * modules/stdlib (Makefile.am): Substitute REPLACE_MKOSTEMP, REPLACE_MKOSTEMPS. * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Conditionally set REPLACE_MKOSTEMP. * modules/mkostemp (Depends-on, configure.ac): Consider REPLACE_MKOSTEMP. * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Conditionally set REPLACE_MKOSTEMPS. * modules/mkostemps (Depends-on, configure.ac): Consider REPLACE_MKOSTEMPS.
Diffstat (limited to 'modules/mkostemps')
-rw-r--r--modules/mkostemps5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/mkostemps b/modules/mkostemps
index 92ef9ea29e..3bcb438860 100644
--- a/modules/mkostemps
+++ b/modules/mkostemps
@@ -10,11 +10,12 @@ Depends-on:
stdlib
extensions
largefile
-tempname [test $HAVE_MKOSTEMPS = 0]
+tempname [test $HAVE_MKOSTEMPS = 0 || test $REPLACE_MKOSTEMPS = 1]
configure.ac:
gl_FUNC_MKOSTEMPS
-gl_CONDITIONAL([GL_COND_OBJ_MKOSTEMPS], [test $HAVE_MKOSTEMPS = 0])
+gl_CONDITIONAL([GL_COND_OBJ_MKOSTEMPS],
+ [test $HAVE_MKOSTEMPS = 0 || test $REPLACE_MKOSTEMPS = 1])
gl_MODULE_INDICATOR([mkostemps])
gl_STDLIB_MODULE_INDICATOR([mkostemps])