From cb796a356316cd19a838bcdd63b802c43434e582 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 23 Apr 2016 21:16:00 +0200 Subject: [PATCH] examples/parse_args.h: set optind = 1 if no getopt.h --- examples/parse_args.h | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.11.0