summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}
/*