aboutsummaryrefslogtreecommitdiff
path: root/pcap-npf.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-npf.c')
-rw-r--r--pcap-npf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pcap-npf.c b/pcap-npf.c
index e3a995a2..688b21f7 100644
--- a/pcap-npf.c
+++ b/pcap-npf.c
@@ -273,7 +273,12 @@ pcap_stats_ex_npf(pcap_t *p, int *pcap_stat_size)
p->stat.ps_recv = bstats.bs_recv;
p->stat.ps_drop = bstats.bs_drop;
p->stat.ps_ifdrop = bstats.ps_ifdrop;
-#ifdef ENABLE_REMOTE
+ /*
+ * Just in case this is ever compiled for a target other than
+ * Windows, which is somewhere between extemely unlikely and
+ * impossible.
+ */
+#ifdef _WIN32
p->stat.ps_capt = bstats.bs_capt;
#endif
return (&p->stat);