From a3f61946013b03518002c25e2b52129d9f897651 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 17 Mar 2015 13:37:36 +0100 Subject: [PATCH] Look in libsocket for socket functions on Solaris --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ee31273d..bb0a778a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -258,6 +258,9 @@ if(WIN32) set(HAVE_INET_ATON 1) set(HAVE_GETADDRINFO 1) else() + if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") + set(CMAKE_REQUIRED_LIBRARIES socket) + endif() check_function_exists(inet_aton HAVE_INET_ATON) check_function_exists(getaddrinfo HAVE_GETADDRINFO) set(CMAKE_REQUIRED_LIBRARIES) -- 2.39.5