Command line: Add a HAVE_LIBPCAP check for -k.

`-k` is a capture option, so add a HAVE_LIBPCAP check similar to other
flags. Fixes

../ui/commandline.c:459:41: error: no member named 'start_capture' in 'struct commandline_param_info'
                global_commandline_info.start_capture = TRUE;
                ~~~~~~~~~~~~~~~~~~~~~~~ ^
This commit is contained in:
Gerald Combs 2021-04-13 14:33:37 -07:00
parent 60e339bba4
commit c27a7ffb9a
1 changed files with 5 additions and 0 deletions

View File

@ -456,7 +456,12 @@ void commandline_other_options(int argc, char *argv[], gboolean opt_reset)
global_commandline_info.jfilter = optarg;
break;
case 'k': /* Start capture immediately */
#ifdef HAVE_LIBPCAP
global_commandline_info.start_capture = TRUE;
#else
capture_option_specified = TRUE;
arg_error = TRUE;
#endif
break;
case 'l': /* Automatic scrolling in live capture mode */
#ifdef HAVE_LIBPCAP