summaryrefslogtreecommitdiff
path: root/libc/unistd/getopt.c
diff options
context:
space:
mode:
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 */