]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/getopt_long.c
Fix the pointer tests in the non-ndoified TTEST2() macro as well.
[tcpdump] / missing / getopt_long.c
index df6c7361faf2f982588eaf508f591d67cf522488..80857369804dbe21aa4c27ad50db68f743d8656e 100644 (file)
@@ -51,7 +51,7 @@
 
 
 #include <errno.h>
-#include "getopt.h"
+#include "getopt_long.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -79,6 +79,9 @@
 #define W_PREFIX       2
 #endif
 
+char *optarg;
+int optind, opterr = 1, optopt;
+
 static int getopt_internal(int, char * const *, const char *,
                           const struct option *, int *, int);
 static int parse_long_options(char * const *, const char *,