summaryrefslogtreecommitdiff
path: root/libc/unistd/getopt.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-08-08 17:03:36 +0000
committerEric Andersen <andersen@codepoet.org>2001-08-08 17:03:36 +0000
commitc3bbc0eafdae7a50c46ec61f3352821b7c28ea85 (patch)
treea3f8e5d23017c4301813b6c6302d1277ed216efd /libc/unistd/getopt.c
parentc4257d720039474be6804b20c4d133a65aa1d265 (diff)
This syncs things up with my local tree. Mainly changes installer
issues, and syns things (as far as I am willing) with Dave Schleef's tree. We may need to go another round or so, but we do seem to be converging...
Diffstat (limited to 'libc/unistd/getopt.c')
-rw-r--r--libc/unistd/getopt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libc/unistd/getopt.c b/libc/unistd/getopt.c
index ec5c988f5..eb6c4f4f6 100644
--- a/libc/unistd/getopt.c
+++ b/libc/unistd/getopt.c
@@ -39,10 +39,7 @@ int c; /* defective option letter */
return '?'; /* erroneous-option marker */
}
-extern int getopt (int argc, char *const *argv, const char *optstring)
- __attribute__ ((__weak__));
-
-int getopt (int argc, char *const *argv, const char *optstring)
+int __attribute__ ((__weak__)) getopt (int argc, char *const *argv, const char *optstring)
{
static int sp = 1; /* position within argument */
register int osp; /* saved `sp' for param test */