mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-10 20:31:27 +01:00
Add optreset to getopt.h too since NetBSD getopt_long() (but not GNU one)
use it too.
This commit is contained in:
parent
1919b885d0
commit
de693dcb58
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126142
@ -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_ */
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user