summaryrefslogtreecommitdiff
path: root/m4/spawn_h.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-01-22 14:41:07 +0100
committerBruno Haible <bruno@clisp.org>2023-01-22 15:57:22 +0100
commitefd13f2f20f8fbd178fd5dff28b5f31219ea0538 (patch)
tree9b5ecb5e6fe74977cb1ef3e86473261e68518aaa /m4/spawn_h.m4
parent64ad3c7d1d74fb34ab6ae92b8ab0fdd9cdd3bfbc (diff)
downloadgnulib-efd13f2f20f8fbd178fd5dff28b5f31219ea0538.tar.gz
Resolve conflicts for functions introduced in Android API level 28.
* m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): Conditionally set REPLACE_POSIX_SPAWN. * lib/spawn.in.h: Adapt logic for defining the POSIX_SPAWN_* constants. (posix_spawn, posix_spawnp, posix_spawnattr_init, posix_spawnattr_destroy, posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask, posix_spawnattr_setsigmask, posix_spawnattr_getflags, posix_spawnattr_setflags, posix_spawnattr_getpgroup, posix_spawnattr_setpgroup, posix_spawn_file_actions_init, posix_spawn_file_actions_destroy, posix_spawn_file_actions_addchdir, posix_spawn_file_actions_addfchdir): Disable _GL_CXXALIASWARN invocation on non-glibc systems.
Diffstat (limited to 'm4/spawn_h.m4')
-rw-r--r--m4/spawn_h.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/m4/spawn_h.m4 b/m4/spawn_h.m4
index 3bee0f7be4..b7b9a61342 100644
--- a/m4/spawn_h.m4
+++ b/m4/spawn_h.m4
@@ -1,4 +1,4 @@
-# spawn_h.m4 serial 23
+# spawn_h.m4 serial 24
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,
@@ -79,6 +79,9 @@ AC_DEFUN([gl_HAVE_POSIX_SPAWN],
if test $ac_cv_func_posix_spawn != yes; then
HAVE_POSIX_SPAWN=0
+ case "$gl_cv_onwards_func_posix_spawn" in
+ future*) REPLACE_POSIX_SPAWN=1 ;;
+ esac
fi
])