summaryrefslogtreecommitdiff
path: root/modules/posix_spawn-internal
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-07-21 06:48:26 -0600
committerEric Blake <ebb9@byu.net>2009-07-21 07:08:06 -0600
commitddd625ddd088a87d5598256d09b2036c63063386 (patch)
tree57eb630aa1bdf55c46b7b1008aa59619e49d67d4 /modules/posix_spawn-internal
parent77ef628397e3c8951051305e9601a7800c895b73 (diff)
downloadgnulib-ddd625ddd088a87d5598256d09b2036c63063386.tar.gz
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 <ebb9@byu.net>
Diffstat (limited to 'modules/posix_spawn-internal')
-rw-r--r--modules/posix_spawn-internal1
1 files changed, 1 insertions, 0 deletions
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