Don't include <wsutil/wspcap.h> if we're not building with libpcap.

We don't need it and, if there *is* no pcap.h header, because the pcap
headers aren't installed, it won't compile.

Bug: 15317
Change-Id: Ie2a107f6117aad8f87943cd72269211f13b71142
Reviewed-on: https://code.wireshark.org/review/30883
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-12-02 01:02:28 -08:00
parent 74b0c08905
commit 98d4b434fe
1 changed files with 2 additions and 0 deletions

View File

@ -12,7 +12,9 @@
#include <ui_compiled_filter_output.h>
#include "compiled_filter_output.h"
#ifdef HAVE_LIBPCAP
#include <wsutil/wspcap.h>
#endif
#include "capture_opts.h"
#include <wiretap/wtap.h>