aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-08-18 02:49:41 +0000
committerRoland McGrath <roland@gnu.org>2001-08-18 02:49:41 +0000
commit55183f249fff2918c153ca91bc96c8f5d078abfa (patch)
tree39a3f32e905a5f26ecd64b9c67641b12c2a4d3f6 /stdio-common
parent89f29a0742e0dc8fa764a2dbb09c06e25909dac9 (diff)
downloadglibc-55183f249fff2918c153ca91bc96c8f5d078abfa.zip
glibc-55183f249fff2918c153ca91bc96c8f5d078abfa.tar.gz
glibc-55183f249fff2918c153ca91bc96c8f5d078abfa.tar.bz2
2001-08-17 Roland McGrath <roland@frob.com>
* stdio-common/perror.c (perror) [! USE_IN_LIBIO]: Don't use _IO_fwide. * misc/error.c (error_tail, error, error_at_line) [! USE_IN_LIBIO]: Likewise.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/perror.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stdio-common/perror.c b/stdio-common/perror.c
index b6f8d5e..a1995e9 100644
--- a/stdio-common/perror.c
+++ b/stdio-common/perror.c
@@ -55,9 +55,11 @@ perror_internal (FILE *fp, const char *s)
void
perror (const char *s)
{
+#ifdef USE_IN_LIBIO
FILE *fp;
int fd = -1;
+
/* The standard says that 'perror' must not change the orientation
of the stream. What is supposed to happen when the stream isn't
oriented yet? In this case we'll create a new stream which is
@@ -84,4 +86,7 @@ perror (const char *s)
((_IO_FILE *) stderr)->_offset = _IO_pos_BAD;
}
+#else
+ perror_internal (stderr, s);
+#endif
}