summaryrefslogtreecommitdiff
path: root/extcap
diff options
context:
space:
mode:
Diffstat (limited to 'extcap')
-rw-r--r--extcap/androiddump.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/extcap/androiddump.c b/extcap/androiddump.c
index d5a267e954..00cc0e03fb 100644
--- a/extcap/androiddump.c
+++ b/extcap/androiddump.c
@@ -65,6 +65,18 @@
#define PCAP_RECORD_HEADER_LENGTH 16
#ifdef ANDROIDDUMP_USE_LIBPCAP
+ #ifdef HAVE_PCAP_REMOTE
+ /*
+ * Force the WinPcap header files to define things required for remote
+ * capture. (Yes, this is q WinPcap bug; if your project has a public
+ * header file that checks or otherwise uses a #define that's defined
+ * by your project's configuration process, and don't ensure that
+ * it's always defined appropriately when that header file is included,
+ * before its first use, you have made a mistake.)
+ */
+ #define HAVE_REMOTE
+ #endif
+
#include <pcap.h>
#include <pcap-bpf.h>
#include <pcap/bluetooth.h>