From f3098fb28237e21c91ea4fcd8e918c9a2528c965 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 11 May 2017 20:18:00 -0700 Subject: Don't include headers that depend on pcap if you don't have it. Change-Id: I17234ef60411f922678b900a6ac4fb264b9ce431 Reviewed-on: https://code.wireshark.org/review/21614 Reviewed-by: Guy Harris --- caputils/capture-wpcap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'caputils') diff --git a/caputils/capture-wpcap.c b/caputils/capture-wpcap.c index deff5f9da5..d23a77dac4 100644 --- a/caputils/capture-wpcap.c +++ b/caputils/capture-wpcap.c @@ -30,6 +30,11 @@ #include #include + +gboolean has_wpcap = FALSE; + +#ifdef HAVE_LIBPCAP + #include #include @@ -46,11 +51,6 @@ #define MAX_WIN_IF_NAME_LEN 511 - -gboolean has_wpcap = FALSE; - -#ifdef HAVE_LIBPCAP - /* * XXX - should we require at least WinPcap 3.1 both for building an * for using Wireshark? -- cgit v1.2.1