From: Guy Harris Date: Fri, 15 Sep 2017 04:50:35 +0000 (-0700) Subject: Make sure HAVE_GETIFADDRS is set if we have getifaddrs. X-Git-Tag: libpcap-1.9-bp~697 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/c70c1f6f4922d99e3db0337990598b0fd1a3137b Make sure HAVE_GETIFADDRS is set if we have getifaddrs. Most of the code wants to know if we have it, regardless of where we found it. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2042b43a..334c7200 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -509,8 +509,8 @@ if(NOT WIN32) # set(FINDALLDEVS_TYPE null) else() - check_function_exists(getifaddrs STDLIBS_HAVE_GETIFADDRS) - if(NOT STDLIBS_HAVE_GETIFADDRS) + check_function_exists(getifaddrs HAVE_GETIFADDRS) + if(NOT HAVE_GETIFADDRS) # # It's in libsocket on Solaris and possibly other OSes; # check there.