about summary refs log tree commit diff
path: root/sysdeps/posix/dup2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/dup2.c')
-rw-r--r--sysdeps/posix/dup2.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/posix/dup2.c b/sysdeps/posix/dup2.c
index bc8d422831..46c679899f 100644
--- a/sysdeps/posix/dup2.c
+++ b/sysdeps/posix/dup2.c
@@ -21,9 +21,6 @@
 #include <limits.h>
 #include <unistd.h>
 
-#undef __dup2
-
-
 /* Duplicate FD to FD2, closing the old FD2 and making FD2 be
    open the same file as FD is.  Return FD2 or -1.  */
 int
@@ -58,6 +55,5 @@ __dup2 (fd, fd2)
 
   return fcntl (fd, F_DUPFD, fd2);
 }
-
-INTDEF(__dup2)
+libc_hidden_def (__dup2)
 weak_alias (__dup2, dup2)