diff options
Diffstat (limited to 'lib/dup2.c')
| -rw-r--r-- | lib/dup2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dup2.c b/lib/dup2.c index 9bc3951f3d2..323e19b25ec 100644 --- a/lib/dup2.c +++ b/lib/dup2.c | |||
| @@ -52,7 +52,7 @@ dup2_nothrow (int fd, int desired_fd) | |||
| 52 | 52 | ||
| 53 | TRY_MSVC_INVAL | 53 | TRY_MSVC_INVAL |
| 54 | { | 54 | { |
| 55 | result = dup2 (fd, desired_fd); | 55 | result = _dup2 (fd, desired_fd); |
| 56 | } | 56 | } |
| 57 | CATCH_MSVC_INVAL | 57 | CATCH_MSVC_INVAL |
| 58 | { | 58 | { |
| @@ -64,7 +64,7 @@ dup2_nothrow (int fd, int desired_fd) | |||
| 64 | return result; | 64 | return result; |
| 65 | } | 65 | } |
| 66 | # else | 66 | # else |
| 67 | # define dup2_nothrow dup2 | 67 | # define dup2_nothrow _dup2 |
| 68 | # endif | 68 | # endif |
| 69 | 69 | ||
| 70 | static int | 70 | static int |