From efd13f2f20f8fbd178fd5dff28b5f31219ea0538 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 Jan 2023 14:41:07 +0100 Subject: 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. --- m4/spawn_h.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'm4/spawn_h.m4') 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 ]) -- cgit v1.2.1