summaryrefslogtreecommitdiff
path: root/trigcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'trigcap.c')
-rw-r--r--trigcap.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/trigcap.c b/trigcap.c
index c0779584d6..3c14c6a37e 100644
--- a/trigcap.c
+++ b/trigcap.c
@@ -27,6 +27,19 @@
#include <signal.h>
#include <errno.h>
#include <getopt.h>
+
+#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>
static int dumping;