]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Define optarg, optind, opterr, and optopt.
authorGisle Vanem <[email protected]>
Thu, 1 May 2014 19:27:34 +0000 (12:27 -0700)
committerGuy Harris <[email protected]>
Thu, 1 May 2014 19:27:34 +0000 (12:27 -0700)
That's necessary on Windows, where you're not going to get them defined
by getopt(), and where the ref/def model rather than the common model is
used.

missing/getopt_long.c

index df6c7361faf2f982588eaf508f591d67cf522488..245e7bd3e45fa40ae36c33e03fc7f8e24f12fa17 100644 (file)
@@ -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 *,