aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/perror.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/perror.c')
-rw-r--r--stdio-common/perror.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stdio-common/perror.c b/stdio-common/perror.c
index 239d43edc6..77a1d9fe46 100644
--- a/stdio-common/perror.c
+++ b/stdio-common/perror.c
@@ -39,8 +39,10 @@ perror (const char *s)
errstring = __strerror_r (errnum, buf, sizeof buf);
+#ifdef USE_IN_LIBIO
if (fwide (stderr, 0) > 0)
(void) fwprintf (stderr, L"%s%s%s\n", s, colon, errstring);
else
+#endif
(void) fprintf (stderr, "%s%s%s\n", s, colon, errstring);
}