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 /lib/spawn.in.h | |
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 'lib/spawn.in.h')
-rw-r--r-- | lib/spawn.in.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spawn.in.h b/lib/spawn.in.h index aa5aaf3f05..0f25d17620 100644 --- a/lib/spawn.in.h +++ b/lib/spawn.in.h @@ -774,7 +774,7 @@ _GL_WARN_ON_USE (posix_spawn_file_actions_destroy, #if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ /* Add an action to FILE-ACTIONS which tells the implementation to call 'open' for the given file during the 'spawn' call. */ -# if @REPLACE_POSIX_SPAWN@ +# if @REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) # define posix_spawn_file_actions_addopen rpl_posix_spawn_file_actions_addopen # endif |