about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/perror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/perror.c b/stdio-common/perror.c
index a2865dc25c..b6f8d5e13e 100644
--- a/stdio-common/perror.c
+++ b/stdio-common/perror.c
@@ -64,11 +64,11 @@ perror (const char *s)
      using the same underlying file descriptor.  */
   if (__builtin_expect (_IO_fwide (stderr, 0) != 0, 1)
       || fileno_unlocked (stderr) == -1
-      || (fd = dup (fileno_unlocked (stderr))) == -1
+      || (fd = __dup (fileno_unlocked (stderr))) == -1
       || (fp = fdopen (fd, "w+")) == NULL)
     {
       if (__builtin_expect (fd != -1, 0))
-	close (fd);
+	__close (fd);
 
       /* Use standard error as is.  */
       perror_internal (stderr, s);