When checking pcap.h, make sure we look in ${PCAP_INCLUDE_DIRS}.

It's not necessarily in one of the default include directories, so look
in the directory where we're supposed to look for pcap header files.
This commit is contained in:
Guy Harris 2018-01-29 01:30:20 -08:00
parent c1094815c3
commit c7dfcd6aaf

View File

@ -557,6 +557,7 @@ if(HAVE_PCAP_FINDALLDEVS)
# pcap.h didn't have pcap_if_t.
#
cmake_push_check_state()
set(CMAKE_REQUIRED_INCLUDES ${PCAP_INCLUDE_DIRS})
set(CMAKE_EXTRA_INCLUDE_FILES pcap.h)
check_type_size(pcap_if_t PCAP_IF_T)
cmake_pop_check_state()