aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-03-08 13:32:28 +0000
committerAndreas Schneider <mail@cynapses.org>2009-03-08 13:32:28 +0000
commit14580705d56e70b10cfd603c8878da29f2f2d770 (patch)
tree8c8fa5374066a5b3c1a9f85e5bc1d7ea7385348d
parent6ab119d8dc94703df8595b350041bf8843403acb (diff)
downloadlibssh-14580705d56e70b10cfd603c8878da29f2f2d770.tar.gz
libssh-14580705d56e70b10cfd603c8878da29f2f2d770.tar.xz
libssh-14580705d56e70b10cfd603c8878da29f2f2d770.zip
Set needed functions on Windows to true for now.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@247 7dcaeef0-15fb-0310-b436-a5af3365683c
-rw-r--r--ConfigureChecks.cmake14
1 files changed, 10 insertions, 4 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 9d81d51..8360281 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -25,10 +25,16 @@ check_include_file(openssl/des.h HAVE_OPENSSL_DES_H)
# FUNCTIONS
check_function_exists(cfmakeraw HAVE_CFMAKERAW)
-check_function_exists(getaddrinfo HAVE_GETADDRINFO)
-check_function_exists(gethostbyname HAVE_GETHOSTBYNAME)
-check_function_exists(poll HAVE_POLL)
-check_function_exists(select HAVE_SELECT)
+if (WIN32)
+ set(HAVE_GETADDRINFO TRUE)
+ set(HAVE_GETHOSTBYNAME TRUE)
+ set(HAVE_SELECT TRUE)
+else (WIN32)
+ check_function_exists(getaddrinfo HAVE_GETADDRINFO)
+ check_function_exists(gethostbyname HAVE_GETHOSTBYNAME)
+ check_function_exists(poll HAVE_POLL)
+ check_function_exists(select HAVE_SELECT)
+endif (WIN32)
# LIBRARIES
if (CRYPTO_LIBRARY)