From 8dfb22f60719278d1bfaa2353676b42190f7ee02 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 23 Feb 2004 04:51:07 +0000 Subject: Add optreset to getopt.h too since NetBSD getopt_long() (but not GNU one) use it too. --- include/getopt.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/getopt.h') diff --git a/include/getopt.h b/include/getopt.h index c29ad42..39b514e 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_ */ -- cgit v1.1