From 0140324c106106878b6d90ebafda9bf50b45aac4 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 3 Feb 2006 16:19:05 +0000 Subject: attribute_hidden is enough in the prototype, sync getopt-susv3 w/ gnu --- libc/unistd/getopt-susv3.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libc/unistd/getopt-susv3.c') diff --git a/libc/unistd/getopt-susv3.c b/libc/unistd/getopt-susv3.c index 0d57dce20..32f699a8e 100644 --- a/libc/unistd/getopt-susv3.c +++ b/libc/unistd/getopt-susv3.c @@ -33,6 +33,7 @@ #include #include #include +#include libc_hidden_proto(fprintf) libc_hidden_proto(strchr) @@ -53,10 +54,18 @@ static const char missing[] = "%s: option requires an argument -- %c\n"; static const char illegal[] = "%s: illegal option -- %c\n"; #endif +libc_hidden_proto(opterr) int opterr = 1; +libc_hidden_data_def(opterr) +libc_hidden_proto(optind) int optind = 1; +libc_hidden_data_def(optind) +libc_hidden_proto(optopt) int optopt = 0; +libc_hidden_data_def(optopt) +libc_hidden_proto(optarg) char *optarg = NULL; +libc_hidden_data_def(optarg) int getopt(int argc, char * const argv[], const char *optstring) { -- cgit v1.2.3