]> source.dussan.org Git - tigervnc.git/commitdiff
Look in libsocket for socket functions on Solaris
authorPierre Ossman <ossman@cendio.se>
Tue, 17 Mar 2015 12:37:36 +0000 (13:37 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 17 Mar 2015 12:37:36 +0000 (13:37 +0100)
CMakeLists.txt

index ee31273d6d023bcff150c7c2c6527c1132b3dcae..bb0a778a7c1ad07c16273e65964403a4f2600b38 100644 (file)
@@ -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)