From dc70356cbfc649af8e39c9a8d509fefd766fa8ef Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sat, 12 May 2012 10:53:04 +0800 Subject: Avoid dup3 PLT usage. Fixes fallout from 5aa3a74a59916b489e9cf7c4dce9eb149e106c6c. --- io/dup3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'io') diff --git a/io/dup3.c b/io/dup3.c index 90a3d60898..7e97bf733c 100644 --- a/io/dup3.c +++ b/io/dup3.c @@ -24,7 +24,7 @@ open the same file as FD is which setting flags according to FLAGS. Return FD2 or -1. */ int -dup3 (fd, fd2, flags) +__dup3 (fd, fd2, flags) int fd; int fd2; int flags; @@ -42,7 +42,8 @@ dup3 (fd, fd2, flags) __set_errno (ENOSYS); return -1; } -libc_hidden_def (dup3) +libc_hidden_def (__dup3) +weak_alias (__dup3, dup3) stub_warning (dup3) #include -- cgit 1.4.1