aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/capture_opts.c b/capture_opts.c
index 0db1637c4d..3990f2a0e7 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -983,6 +983,8 @@ collect_ifaces(capture_options *capture_opts)
interface_opts.promisc_mode = device.pmode;
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
interface_opts.buffer_size = device.buffer;
+#endif
+#ifdef HAVE_PCAP_CREATE
interface_opts.monitor_mode = device.monitor_mode_enabled;
#endif
if (!device.local) {