Commit 229d8d76 authored by Steven Walters's avatar Steven Walters Committed by Fiona Glaser

Add getopt_long to the included getopt.c

Fixes option handling on OSs that have a nonworking/missing getopt (e.g. Solaris).
parent 62ece1c2
......@@ -980,6 +980,16 @@ getopt (argc, argv, optstring)
0);
}
int getopt_long (argc, argv, optstring, long_options, opt_index)
int argc;
char *const *argv;
const char *optstring;
const struct option *long_options;
int *opt_index;
{
return _getopt_internal (argc, argv, optstring, long_options, opt_index, 0);
}
#endif /* Not ELIDE_CODE. */
#ifdef TEST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment