aboutsummaryrefslogtreecommitdiff
path: root/pcap-airpcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-airpcap.c')
-rw-r--r--pcap-airpcap.c6
1 files changed, 5 insertions, 1 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);