aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcap-airpcap.c6
-rw-r--r--pcap-npf.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/pcap-airpcap.c b/pcap-airpcap.c
index 257d5e1a..e90212a8 100644
--- a/pcap-airpcap.c
+++ b/pcap-airpcap.c
@@ -435,7 +435,11 @@ airpcap_stats_ex(pcap_t *p, int *pcap_stat_size)
p->stat.ps_recv = tas.Recvs;
p->stat.ps_drop = tas.Drops;
p->stat.ps_ifdrop = tas.IfDrops;
-#ifdef ENABLE_REMOTE
+ /*
+ * Just in case this is ever compiled for a target other than
+ * Windows, which is extremely unlikely at best.
+ */
+#ifdef _WIN32
p->stat.ps_capt = tas.Capt;
#endif
return (&p->stat);
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);