1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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.
This commit is contained in:
Roland McGrath
2001-08-18 02:49:41 +00:00
parent 89f29a0742
commit 55183f249f
2 changed files with 11 additions and 6 deletions

View File

@ -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
}