Skip to content

Commit 9ee0608

Browse files
committed
CMake: check for pcap_findalldevs_ex.
We do so for autotools, and we currently have separate ifdefs for pcap_open and pcap_findalldevs_ex, rather than treating the presence of pcap_open as an indication that we have the entire remote capture API (the latter is what Wireshark does).
1 parent c02b47d commit 9ee0608

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ if(NOT APPLE OR NOT
760760
(PCAP_LIBRARIES MATCHES "/usr/lib/.*" OR
761761
PCAP_LIBRARIES MATCHES "/Application/Xcode.app/.*"))
762762
check_function_exists(pcap_open HAVE_PCAP_OPEN)
763+
check_function_exists(pcap_findalldevs_ex HAVE_PCAP_FINDALLDEVS_EX)
763764
endif()
764765

765766
#

0 commit comments

Comments
 (0)