Fix stdio-common/perror.c for !USE_IN_LIBIO
Mark Kettenis
kettenis@wins.uva.nl
Sat Aug 18 05:12:00 GMT 2001
Here's another one.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* stdio-common/perror.c [!USE_IN_LIBIO] (perror): Use standard
error as is.
Index: stdio-common/perror.c
===================================================================
RCS file: /cvs/glibc/libc/stdio-common/perror.c,v
retrieving revision 1.12
diff -u -p -r1.12 perror.c
--- stdio-common/perror.c 2001/08/17 06:40:28 1.12
+++ stdio-common/perror.c 2001/08/18 12:11:14
@@ -55,6 +55,7 @@ perror_internal (FILE *fp, const char *s
void
perror (const char *s)
{
+#ifdef USE_IN_LIBIO
FILE *fp;
int fd = -1;
@@ -84,4 +85,7 @@ perror (const char *s)
((_IO_FILE *) stderr)->_offset = _IO_pos_BAD;
}
+#else
+ perror_internal (stderr, s);
+#endif
}
More information about the Libc-hacker
mailing list