summaryrefslogtreecommitdiff
path: root/ui/commandline.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-06-19 17:42:14 -0700
committerGuy Harris <guy@alum.mit.edu>2016-06-20 00:42:57 +0000
commitbea1950d0701eba35af85b228f37dac849902ea8 (patch)
tree8d16b26f076e313e2a536af92f731f350da4b53a /ui/commandline.c
parente79e834ecf8b62d50817a48f9aa56a67930517c1 (diff)
downloadwireshark-bea1950d0701eba35af85b228f37dac849902ea8.tar.gz
Protect some code that's only for Wireshark-with-pcap.
Put that code inside #ifdef HAVE_LIBPCAP/#endif. Change-Id: I85768fd49a008341a95ac3c8656e96afa6741fbe Reviewed-on: https://code.wireshark.org/review/16030 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/commandline.c')
-rw-r--r--ui/commandline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/commandline.c b/ui/commandline.c
index 38c6f386e8..8e55d8b79a 100644
--- a/ui/commandline.c
+++ b/ui/commandline.c
@@ -653,6 +653,7 @@ void commandline_other_options(int argc, char *argv[], commandline_param_info_t*
exit(1);
}
+#ifdef HAVE_LIBPCAP
if (param_info->start_capture && param_info->list_link_layer_types) {
/* Specifying *both* is bogus. */
cmdarg_err("You can't specify both -L and a live capture.");
@@ -700,6 +701,7 @@ void commandline_other_options(int argc, char *argv[], commandline_param_info_t*
}
}
}
+#endif
}
/*