svn commit: trunk/uClibc/libc/unistd

psm at uclibc.org psm at uclibc.org
Fri Feb 3 11:26:21 UTC 2006


Author: psm
Date: 2006-02-03 03:26:19 -0800 (Fri, 03 Feb 2006)
New Revision: 13803

Log:
Use internal versions of strchr and stderr for non-BCC

Modified:
   trunk/uClibc/libc/unistd/getopt-susv3.c


Changeset:
Modified: trunk/uClibc/libc/unistd/getopt-susv3.c
===================================================================
--- trunk/uClibc/libc/unistd/getopt-susv3.c	2006-02-03 00:25:37 UTC (rev 13802)
+++ trunk/uClibc/libc/unistd/getopt-susv3.c	2006-02-03 11:26:19 UTC (rev 13803)
@@ -34,7 +34,11 @@
 #include <string.h>
 #include <stdio.h>
 
+#ifndef __BCC__
 libc_hidden_proto(fprintf)
+libc_hidden_proto(strchr)
+libc_hidden_proto(stderr)
+#endif
 
 #ifdef __UCLIBC_MJN3_ONLY__
 #warning TODO: Enable gettext awareness.
@@ -88,7 +92,7 @@
 #endif
 	retval = (unsigned char) *o; /* Avoid problems for char val of -1. */
 
-	if ((*o == ':') || !(s = __strchr(optstring, *o))) { /* Illegal option? */
+	if ((*o == ':') || !(s = strchr(optstring, *o))) { /* Illegal option? */
 		s = illegal;
 		retval = '?';
 		goto BAD;




More information about the uClibc-cvs mailing list