summaryrefslogtreecommitdiff
path: root/lib/dup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dup2.c')
-rw-r--r--lib/dup2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dup2.c b/lib/dup2.c
index 9bc3951f3d..323e19b25e 100644
--- a/lib/dup2.c
+++ b/lib/dup2.c
@@ -52,7 +52,7 @@ dup2_nothrow (int fd, int desired_fd)
TRY_MSVC_INVAL
{
- result = dup2 (fd, desired_fd);
+ result = _dup2 (fd, desired_fd);
}
CATCH_MSVC_INVAL
{
@@ -64,7 +64,7 @@ dup2_nothrow (int fd, int desired_fd)
return result;
}
# else
-# define dup2_nothrow dup2
+# define dup2_nothrow _dup2
# endif
static int