Now that we're using getopt_long(), and have some options available only
authorGuy Harris <guy@alum.mit.edu>
Fri, 2 Aug 2013 07:07:35 +0000 (07:07 -0000)
committerGuy Harris <guy@alum.mit.edu>
Fri, 2 Aug 2013 07:07:35 +0000 (07:07 -0000)
as long options, and thus identified with numbers rather than option
letters as the return value of getopt_long(), we now have to include
capture_opts.h even if we're *not* building with libpcap, to provide
#defines for those numbers.

svn path=/trunk/; revision=51115

tshark.c

index 59fa5fa78bd831b8206d12327cacde1e6ffe4997..ea5e72cb8c9bfcaf693a90d3455c289fe29f17e0 100644 (file)
--- a/tshark.c
+++ b/tshark.c
@@ -87,6 +87,8 @@
 #include <epan/timestamp.h>
 #include <epan/ex-opt.h>
 
+#include "capture_opts.h"
+
 #ifdef HAVE_LIBPCAP
 #include "capture_ui_utils.h"
 #include "capture_ifinfo.h"
@@ -95,7 +97,6 @@
 #include "capture-wpcap.h"
 #include <wsutil/unicode-utils.h>
 #endif /* _WIN32 */
-#include "capture_opts.h"
 #include "capture_session.h"
 #include "capture_sync.h"
 #include "capture_opts.h"