diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-09-13 17:22:49 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-09-14 01:03:02 +0000 |
commit | df85480630a21d840427d564e40c91b878606ba3 (patch) | |
tree | 59c42292f2fc7af54401ef49be7f23c18237ec20 /ui/gtk | |
parent | bdf10a239fcf873e1fff955f0fb6d8fd41aefcf3 (diff) |
Fix builds without pcap.
Change-Id: I5e327a8147ccd02e4fc689b321718b1910344b33
Reviewed-on: https://code.wireshark.org/review/23527
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/capture_if_dlg.c | 2 | ||||
-rw-r--r-- | ui/gtk/main.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ui/gtk/capture_if_dlg.c b/ui/gtk/capture_if_dlg.c index 187b704662..99461a4823 100644 --- a/ui/gtk/capture_if_dlg.c +++ b/ui/gtk/capture_if_dlg.c @@ -22,6 +22,8 @@ #include "config.h" +#include "ws_attributes.h" + #include <glib.h> #ifdef HAVE_LIBPCAP diff --git a/ui/gtk/main.c b/ui/gtk/main.c index 8214139455..11c90e6dfe 100644 --- a/ui/gtk/main.c +++ b/ui/gtk/main.c @@ -1989,6 +1989,7 @@ main(int argc, char *argv[]) int err; #ifdef HAVE_LIBPCAP gchar *err_str; + int caps_queries = 0; #else #ifdef _WIN32 #ifdef HAVE_AIRPCAP @@ -1996,7 +1997,6 @@ main(int argc, char *argv[]) #endif #endif #endif - int caps_queries = 0; gint pl_size = 280, tv_size = 95, bv_size = 75; gchar *rc_file; dfilter_t *rfcode = NULL; |