From ddd625ddd088a87d5598256d09b2036c63063386 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 21 Jul 2009 06:48:26 -0600 Subject: dup2: work around mingw and cygwin 1.5 bug * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness. * modules/unistd (Makefile.am): Substitute it. * lib/unistd.in.h (dup2): Declare the replacement. * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it. * doc/posix-functions/dup2.texi (dup2): Document the bugs. * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement. * modules/execute (Depends-on): Add dup2. * modules/fseterr (Depends-on): Likewise. * modules/pipe (Depends-on): Likewise. * modules/posix_spawn-internal (Depends-on): Likewise. Signed-off-by: Eric Blake --- modules/posix_spawn-internal | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/posix_spawn-internal') diff --git a/modules/posix_spawn-internal b/modules/posix_spawn-internal index 211cc22e45..da3ed28169 100644 --- a/modules/posix_spawn-internal +++ b/modules/posix_spawn-internal @@ -9,6 +9,7 @@ m4/posix_spawn.m4 Depends-on: spawn alloca-opt +dup2 errno open strchrnul -- cgit v1.2.1