From 9221e6a1b5c95f16ab488d928f58c91769205e87 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Thu, 1 May 2014 12:27:34 -0700 Subject: Define optarg, optind, opterr, and optopt. That's necessary on Windows, where you're not going to get them defined by getopt(). --- missing/getopt_long.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'missing') diff --git a/missing/getopt_long.c b/missing/getopt_long.c index df6c7361..245e7bd3 100644 --- a/missing/getopt_long.c +++ b/missing/getopt_long.c @@ -79,6 +79,9 @@ #define W_PREFIX 2 #endif +char *optarg; +int optind, opterr, optopt; + static int getopt_internal(int, char * const *, const char *, const struct option *, int *, int); static int parse_long_options(char * const *, const char *, -- cgit v1.2.1