aboutsummaryrefslogtreecommitdiff
path: root/include/getopt.h
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2004-02-23 04:51:07 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2004-02-23 04:51:07 +0000
commitde693dcb58bc30ea44306c5aa2f6e4c092544afd (patch)
tree9bcb7c2cf45bed4ba98d6246164b1d62aa596095 /include/getopt.h
parent1919b885d0de73cbbe7044f942a187db51053956 (diff)
downloadsrc-de693dcb58bc30ea44306c5aa2f6e4c092544afd.tar.gz
src-de693dcb58bc30ea44306c5aa2f6e4c092544afd.zip
Add optreset to getopt.h too since NetBSD getopt_long() (but not GNU one)
use it too.
Notes
Notes: svn path=/head/; revision=126142
Diffstat (limited to 'include/getopt.h')
-rw-r--r--include/getopt.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/getopt.h b/include/getopt.h
index c29ad4203a76..39b514ef9b2a 100644
--- a/include/getopt.h
+++ b/include/getopt.h
@@ -72,7 +72,11 @@ int getopt(int, char * const [], const char *);
extern char *optarg; /* getopt(3) external variables */
extern int optind, opterr, optopt;
-#endif /* _GETOPT_DECLARED */
+#endif
+#ifndef _OPTRESET_DECLARED
+#define _OPTRESET_DECLARED
+extern int optreset; /* getopt(3) external variable */
+#endif
__END_DECLS
#endif /* !_GETOPT_H_ */