diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-05-11 20:18:00 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-05-12 03:20:02 +0000 |
commit | f3098fb28237e21c91ea4fcd8e918c9a2528c965 (patch) | |
tree | 36ec76fab1155f78074f9c0eb4ed79881fc916a2 | |
parent | 4e28cf02c5bec2424f150ff9d8e8e9d9bc531854 (diff) |
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 <guy@alum.mit.edu>
-rw-r--r-- | caputils/capture-wpcap.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 <stdio.h> #include <glib.h> + +gboolean has_wpcap = FALSE; + +#ifdef HAVE_LIBPCAP + #include <gmodule.h> #include <epan/strutil.h> @@ -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? |