diff options
author | Gisle Vanem <gvanem@yahoo.no> | 2014-05-01 12:27:34 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-05-01 16:13:06 -0700 |
commit | 9221e6a1b5c95f16ab488d928f58c91769205e87 (patch) | |
tree | 822b4aac41346b16baff851c9c04619199916dba /missing | |
parent | 040c96487cdc1f920c514e470d25fa1c80fd0154 (diff) | |
download | tcpdump-9221e6a1b5c95f16ab488d928f58c91769205e87.tar.gz |
Define optarg, optind, opterr, and optopt.
That's necessary on Windows, where you're not going to get them defined
by getopt().
Diffstat (limited to 'missing')
-rw-r--r-- | missing/getopt_long.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 *, |