aboutsummaryrefslogtreecommitdiffstats
path: root/libio/freopen64.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-05-12 10:53:04 +0800
committerThomas Schwinge <thomas@codesourcery.com>2012-05-12 10:53:04 +0800
commitdc70356cbfc649af8e39c9a8d509fefd766fa8ef (patch)
tree1183fe5797332d424dd803f36c1ebda53ebe7324 /libio/freopen64.c
parent9fb1a21f4d33c4c82719d6130e149eb2c5a51ae8 (diff)
downloadtermbaud-dc70356cbfc649af8e39c9a8d509fefd766fa8ef.tar.gz
termbaud-dc70356cbfc649af8e39c9a8d509fefd766fa8ef.tar.xz
termbaud-dc70356cbfc649af8e39c9a8d509fefd766fa8ef.zip
Avoid dup3 PLT usage.
Fixes fallout from 5aa3a74a59916b489e9cf7c4dce9eb149e106c6c.
Diffstat (limited to 'libio/freopen64.c')
-rw-r--r--libio/freopen64.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/freopen64.c b/libio/freopen64.c
index 24d03606254..c28a9925f07 100644
--- a/libio/freopen64.c
+++ b/libio/freopen64.c
@@ -73,9 +73,9 @@ freopen64 (filename, mode, fp)
else
newfd =
# endif
- dup3 (_IO_fileno (result), fd,
- (result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0
- ? O_CLOEXEC : 0);
+ __dup3 (_IO_fileno (result), fd,
+ (result->_flags2 & _IO_FLAGS2_CLOEXEC) != 0
+ ? O_CLOEXEC : 0);
#else
# define newfd 1
#endif