diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-17 14:02:11 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-17 17:18:51 +0100 |
commit | cfb21169c4e3b45967757d59314c3f3c4b3c29af (patch) | |
tree | a12330e98fbc2638d208dcbe11cc795af95e7048 /CMakeLists.txt | |
parent | acd195d949a3ab94668fb49e0a5bf6fb395134bd (diff) | |
download | tigervnc-cfb21169c4e3b45967757d59314c3f3c4b3c29af.tar.gz tigervnc-cfb21169c4e3b45967757d59314c3f3c4b3c29af.zip |
Require getaddrinfo() on all systems
Every reasonably current system support getaddrinfo() so get rid
of the legacy fallbacks.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index eb4014a1..84fb7f3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -252,18 +252,6 @@ if(ENABLE_PAM) endif() set(HAVE_PAM ${ENABLE_PAM}) -# Check for socket functions -if(WIN32) - # check_function_exists() cannot handle stdcall, so just define things - set(HAVE_GETADDRINFO 1) -else() - if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") - set(CMAKE_REQUIRED_LIBRARIES socket) - endif() - check_function_exists(getaddrinfo HAVE_GETADDRINFO) - set(CMAKE_REQUIRED_LIBRARIES) -endif() - # Generate config.h and make sure the source finds it configure_file(config.h.in config.h) add_definitions(-DHAVE_CONFIG_H) |