aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-08-01 17:33:05 +0200
committerRoland Knall <rknall@gmail.com>2016-08-01 20:11:03 +0000
commita98b55f4f842d580c38bde35d37d907d0d115ccd (patch)
treeb09734b0d5a07ba1482f6afe4f3d8806539e7626 /dumpcap.c
parentedcc2f019e3729293d9410e1bb30dae6bc9b790a (diff)
Fix compilation without extcap.
Change-Id: I627dd6c514066ba67cd501925ff95e9cf819c0e9 Reviewed-on: https://code.wireshark.org/review/16828 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index fd87c14435..d28c1c9076 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -1472,8 +1472,8 @@ cap_pipe_open_live(char *pipename,
#endif
#ifdef HAVE_EXTCAP
gboolean extcap_pipe = FALSE;
-#endif
interface_options interface_opts;
+#endif
ssize_t b;
int fd = -1, sel_ret;
size_t bytes_read;
@@ -1501,7 +1501,9 @@ cap_pipe_open_live(char *pipename,
}
} else {
+#ifdef HAVE_EXTCAP
interface_opts = g_array_index(global_capture_opts.ifaces, interface_options, 0);
+#endif
#ifndef _WIN32
#ifdef HAVE_EXTCAP