mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 18:14:29 +08:00
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:
parent
c1094815c3
commit
c7dfcd6aaf
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user