aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2009-10-06 16:01:18 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2009-10-06 16:01:18 +0000
commit72676c1263b2186a915a56b7f46d5af019397117 (patch)
tree0dc184c467bbca781c4d7a049ab14a67b4e5cfea /editcap.c
parentbce3c61126947dce79b9729396b59d5e32f68b19 (diff)
Invert check for getopt: NEED_GETOPT_H -> HAVE_GETOPT_H
Rename getopt.[ch] -> wsgetopt.[ch] to avoid name collision. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30370 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/editcap.c b/editcap.c
index b401066535..5937cbac37 100644
--- a/editcap.c
+++ b/editcap.c
@@ -42,8 +42,10 @@
#include "wtap.h"
-#ifdef NEED_GETOPT_H
-#include "getopt.h"
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#else
+#include "wsgetopt.h"
#endif
#ifdef _WIN32
@@ -672,8 +674,6 @@ main(int argc, char *argv[])
wtap *wth;
int i, j, err;
gchar *err_info;
- extern char *optarg;
- extern int optind;
int opt;
char *p;
unsigned int snaplen = 0; /* No limit */