summaryrefslogtreecommitdiff
path: root/libc/unistd/getopt-susv3.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-03 11:26:19 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-03 11:26:19 +0000
commit1d05822f29086242572801e2f19fff5c0f2b2d2c (patch)
treeb7ed3452f9cea2f4b4186c457d01c5fed7fed433 /libc/unistd/getopt-susv3.c
parent9e2b0f0f803bbec45ab0cc4e9829e2fafc467df3 (diff)
Use internal versions of strchr and stderr for non-BCC
Diffstat (limited to 'libc/unistd/getopt-susv3.c')
-rw-r--r--libc/unistd/getopt-susv3.c6
1 files changed, 5 insertions, 1 deletions
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 <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 @@ 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;