summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--config.h.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea91f7a9..58753fbd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -359,6 +359,7 @@ else()
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 0d209521..ec2aed90 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