diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-08-01 17:33:05 +0200 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2016-08-01 20:11:03 +0000 |
commit | a98b55f4f842d580c38bde35d37d907d0d115ccd (patch) | |
tree | b09734b0d5a07ba1482f6afe4f3d8806539e7626 /dumpcap.c | |
parent | edcc2f019e3729293d9410e1bb30dae6bc9b790a (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |