From 1d05822f29086242572801e2f19fff5c0f2b2d2c Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 3 Feb 2006 11:26:19 +0000 Subject: Use internal versions of strchr and stderr for non-BCC --- libc/unistd/getopt-susv3.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libc/unistd') diff --git a/libc/unistd/getopt-susv3.c b/libc/unistd/getopt-susv3.c index b07016f58..6f93e4399 100644 --- a/libc/unistd/getopt-susv3.c +++ b/libc/unistd/getopt-susv3.c @@ -34,7 +34,11 @@ #include #include +#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 @@ int getopt(int argc, char * const argv[], const char *optstring) #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; -- cgit v1.2.3