We forgot to port over the getaddrinfo() test from the autoconf
conversion. Bug discovered by Radek Podgorny.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5019 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea91f7a..58753fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -359,6 +359,7 @@
endif()
check_function_exists(inet_aton HAVE_INET_ATON)
check_function_exists(inet_ntop HAVE_INET_NTOP)
+check_function_exists(getaddrinfo HAVE_GETADDRINFO)
check_type_size(socklen_t SOCKLEN_T)
set(CMAKE_EXTRA_INCLUDE_FILES)
set(CMAKE_REQUIRED_LIBRARIES)
diff --git a/config.h.in b/config.h.in
index 0d20952..ec2aed9 100644
--- a/config.h.in
+++ b/config.h.in
@@ -4,6 +4,7 @@
#cmakedefine HAVE_SOCKLEN_T
#cmakedefine HAVE_INET_ATON
#cmakedefine HAVE_INET_NTOP
+#cmakedefine HAVE_GETADDRINFO
#cmakedefine HAVE_SNPRINTF
#cmakedefine HAVE_STRCASECMP
#cmakedefine HAVE_STRNCASECMP