commit | a3f61946013b03518002c25e2b52129d9f897651 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Tue Mar 17 13:37:36 2015 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Tue Mar 17 13:37:36 2015 +0100 |
tree | 5762a9aaec1d515f5be4dfcb6df631a09d157cc7 | |
parent | 98af8b1e73b107378dc0005b48c212ab46b0b84f [diff] |
Look in libsocket for socket functions on Solaris
diff --git a/CMakeLists.txt b/CMakeLists.txt index ee31273..bb0a778 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -258,6 +258,9 @@ 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)