@@ -2188,27 +2188,29 @@ else(WIN32)
21882188 endif ()
21892189 cmake_pop_check_state()
21902190
2191- #
2192- # Check whether there's a inet/ipnet.h header and,
2193- # if so, whether it defines IPNET_ANY_LINK - if so,
2194- # we assume we have the "any" device (that's a
2195- # Solaris header, and later versions of Solaris
2196- # have an "any" device).
2197- #
2198- # Attempting to include it at compile time could
2199- # be a pain, as it's a kernel header.
2200- #
2201- message (STATUS "Checking whether the Solaris \" any\" device is supported" )
2202- if (EXISTS /usr/include /inet/ipnet.h)
2203- file (STRINGS /usr/include /inet/ipnet.h IPNET_ANY_LINK_LINES REGEX IPNET_ANY_LINK)
2204- if (NOT IPNET_ANY_LINK_LINES STREQUAL "" )
2205- set (HAVE_SOLARIS_ANY_DEVICE TRUE )
2191+ if (CMAKE_SYSTEM_NAME STREQUAL "SunOS" )
2192+ #
2193+ # Check whether there's a inet/ipnet.h header and,
2194+ # if so, whether it defines IPNET_ANY_LINK - if so,
2195+ # we assume we have the "any" device (that's a
2196+ # Solaris header, and later versions of Solaris
2197+ # have an "any" device).
2198+ #
2199+ # Attempting to include it at compile time could
2200+ # be a pain, as it's a kernel header.
2201+ #
2202+ message (STATUS "Checking whether the Solaris \" any\" device is supported" )
2203+ if (EXISTS /usr/include /inet/ipnet.h)
2204+ file (STRINGS /usr/include /inet/ipnet.h IPNET_ANY_LINK_LINES REGEX IPNET_ANY_LINK)
2205+ if (NOT IPNET_ANY_LINK_LINES STREQUAL "" )
2206+ set (HAVE_SOLARIS_ANY_DEVICE TRUE )
2207+ endif ()
2208+ endif ()
2209+ if (HAVE_SOLARIS_ANY_DEVICE)
2210+ message (STATUS "Checking whether the Solaris \" any\" device is supported - supported" )
2211+ else ()
2212+ message (STATUS "Checking whether the Solaris \" any\" device is supported - not supported" )
22062213 endif ()
2207- endif ()
2208- if (HAVE_SOLARIS_ANY_DEVICE)
2209- message (STATUS "Checking whether the Solaris \" any\" device is supported - supported" )
2210- else ()
2211- message (STATUS "Checking whether the Solaris \" any\" device is supported - not supported" )
22122214 endif ()
22132215 elseif (PCAP_TYPE STREQUAL "haiku" )
22142216 set (PCAP_SRC pcap-${PCAP_TYPE} .c)
0 commit comments