From 14580705d56e70b10cfd603c8878da29f2f2d770 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 8 Mar 2009 13:32:28 +0000 Subject: [PATCH] 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 --- ConfigureChecks.cmake | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 9d81d515..8360281e 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)