diff options
author | Bruno Haible <bruno@clisp.org> | 2012-01-08 22:31:53 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-01-08 23:03:33 +0100 |
commit | e0ac772ccb7b897a73520c5707db43c8d2bd0bca (patch) | |
tree | 02f2499492c22f81a1f0660f20f30006865b830e /modules/posix_spawn_file_actions_addopen | |
parent | 3f89a5e2c8f6fc011f525980ff99936a4b0445d0 (diff) | |
download | gnulib-e0ac772ccb7b897a73520c5707db43c8d2bd0bca.tar.gz |
posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
* m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
* m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
macro.
* lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
* lib/spawn_faction_addopen.c: Add workaround implementation if
HAVE_WORKING_POSIX_SPAWN.
* modules/spawn (Makefile): Substitute
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
* modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
(Depends-on): Update conditions.
* doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
the Solaris 11 bug.
Diffstat (limited to 'modules/posix_spawn_file_actions_addopen')
-rw-r--r-- | modules/posix_spawn_file_actions_addopen | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/posix_spawn_file_actions_addopen b/modules/posix_spawn_file_actions_addopen index 0af24972de..585fd446a8 100644 --- a/modules/posix_spawn_file_actions_addopen +++ b/modules/posix_spawn_file_actions_addopen @@ -9,12 +9,12 @@ m4/posix_spawn.m4 Depends-on: spawn -getdtablesize [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1] -posix_spawn_file_actions_init [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1] +getdtablesize [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1] +posix_spawn_file_actions_init [test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1] configure.ac: -gl_POSIX_SPAWN -if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then +gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN +if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then AC_LIBOBJ([spawn_faction_addopen]) fi gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addopen]) |