summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/dup2.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2006-09-21 09:41:04 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2006-09-21 09:41:04 +0000
commit3c809eac6656d257676438d8adb7bd58d9a18a43 (patch)
treebbafb5c21a54647e174cc1a2908445a2c9718c90 /otherlibs/win32unix/dup2.c
parent840e64f9b15d5f34b44ffb7417180f3cd030163b (diff)
Continuation of tentative fix for PR#4098
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7629 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/win32unix/dup2.c')
-rw-r--r--otherlibs/win32unix/dup2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/otherlibs/win32unix/dup2.c b/otherlibs/win32unix/dup2.c
index 4be2d819f..0567bdfcf 100644
--- a/otherlibs/win32unix/dup2.c
+++ b/otherlibs/win32unix/dup2.c
@@ -16,7 +16,6 @@
#include <mlvalues.h>
#include "unixsupport.h"
-extern value win_fd_handle(value);
extern int _dup2(int, int);
CAMLprim value unix_dup2(value fd1, value fd2)
@@ -38,6 +37,7 @@ CAMLprim value unix_dup2(value fd1, value fd2)
Descr_kind_val(fd2) = Descr_kind_val(fd1);
/* Reflect the dup2 on the CRT fds, if any */
if (CRT_fd_val(fd1) != NO_CRT_FD || CRT_fd_val(fd2) != NO_CRT_FD)
- _dup2(Int_val(win_fd_handle(fd1)), Int_val(win_fd_handle(fd2)));
+ _dup2(Int_val(win_CRT_fd_of_filedescr(fd1)),
+ Int_val(win_CRT_fd_of_filedescr(fd2)));
return Val_unit;
}