From: Steven Walters Date: Wed, 13 Jan 2010 03:55:10 +0000 (-0500) Subject: Add getopt_long to the included getopt.c X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=eda7bf0d97786c04a8563606fd43eab4494490d6;p=x264.git Add getopt_long to the included getopt.c Fixes option handling on OSs that have a nonworking/missing getopt (e.g. Solaris). --- diff --git a/extras/getopt.c b/extras/getopt.c index 4c0cb101..434efe7e 100644 --- a/extras/getopt.c +++ b/extras/getopt.c @@ -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