Switch to getopt_long from OpenSSH, from Koichi Murase in GitHub issue 4492.

This commit is contained in:
Nicholas Marriott
2025-04-28 09:02:15 +01:00
parent f2283b0cb5
commit f367e3a6c8
4 changed files with 596 additions and 117 deletions

View File

@ -470,7 +470,7 @@ extern int BSDopterr;
extern int BSDoptind;
extern int BSDoptopt;
extern int BSDoptreset;
extern char *BSDoptarg;
extern const char *BSDoptarg;
int BSDgetopt(int, char *const *, const char *);
#define getopt(ac, av, o) BSDgetopt(ac, av, o)
#define opterr BSDopterr