]> The Tcpdump Group git mirrors - libpcap/commitdiff
Make sure HAVE_GETIFADDRS is set if we have getifaddrs.
authorGuy Harris <[email protected]>
Fri, 15 Sep 2017 04:50:35 +0000 (21:50 -0700)
committerGuy Harris <[email protected]>
Fri, 15 Sep 2017 04:50:35 +0000 (21:50 -0700)
Most of the code wants to know if we have it, regardless of where we
found it.

CMakeLists.txt

index 2042b43a423835f3b8934470ab9a3238dcd6deef..334c7200f031a3a8ac9be3b68960e3a17fe65bd3 100644 (file)
@@ -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.