From: Paul Brossier Date: Sat, 23 Apr 2016 19:16:00 +0000 (+0200) Subject: examples/parse_args.h: set optind = 1 if no getopt.h X-Git-Tag: 0.4.4~300^2~228 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=cb796a356316cd19a838bcdd63b802c43434e582;p=aubio.git examples/parse_args.h: set optind = 1 if no getopt.h --- diff --git a/examples/parse_args.h b/examples/parse_args.h index 5090f888..5c4fa170 100644 --- a/examples/parse_args.h +++ b/examples/parse_args.h @@ -249,6 +249,8 @@ parse_args (int argc, char **argv) } } while (next_option != -1); +#else /* HAVE_GETOPT_H */ + int optind = 1; #endif /* HAVE_GETOPT_H */ // if unique, use the non option argument as the source