From: Pierre Ossman Date: Tue, 17 Mar 2015 12:37:36 +0000 (+0100) Subject: Look in libsocket for socket functions on Solaris X-Git-Tag: v1.4.90~27^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3f61946013b03518002c25e2b52129d9f897651;p=tigervnc.git Look in libsocket for socket functions on Solaris --- 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)