Add optreset to getopt.h too since NetBSD getopt_long() (but not GNU one)

use it too.
This commit is contained in:
Andrey A. Chernov 2004-02-23 04:51:07 +00:00
parent 1919b885d0
commit de693dcb58
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126142
2 changed files with 8 additions and 1 deletions

View File

@ -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_ */

View File

@ -542,7 +542,10 @@ int undelete(const char *);
int unwhiteout(const char *);
void *valloc(size_t); /* obsoleted by malloc() */
#ifndef _OPTRESET_DECLARED
#define _OPTRESET_DECLARED
extern int optreset; /* getopt(3) external variable */
#endif
#endif /* __BSD_VISIBLE */
__END_DECLS