This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Fix stdio-common/perror.c for !USE_IN_LIBIO


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
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]