diff options
author | Christophe Baribaud <christophe.baribaud@gmail.com> | 2012-09-20 11:30:32 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-09-21 09:45:03 +0200 |
commit | 9460c5906fab743f9c02dde3678e4e0fe9959b55 (patch) | |
tree | 4e8c7e55a76888e65521f48b0e4d32209c5b5777 /ConfigureChecks.cmake | |
parent | 160da5810f7fe72e415fac11de0f923dcb2b9e4c (diff) | |
download | libssh-9460c5906fab743f9c02dde3678e4e0fe9959b55.tar.gz libssh-9460c5906fab743f9c02dde3678e4e0fe9959b55.tar.xz libssh-9460c5906fab743f9c02dde3678e4e0fe9959b55.zip |
MSVC Windows and winsock2.h
With Microsoft Visual Studio, winsock2.h shall be included before
ws2tcpip.h
Signed-off-by: Christophe Baribaud <christophe.baribaud@gmail.com>
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 77cca0b8..f20fac99 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -46,11 +46,11 @@ check_include_file(pty.h HAVE_PTY_H) check_include_file(termios.h HAVE_TERMIOS_H) if (WIN32) - check_include_file(wspiapi.h HAVE_WSPIAPI_H) + check_include_files("winsock2.h;ws2tcpip.h;wspiapi.h" HAVE_WSPIAPI_H) if (NOT HAVE_WSPIAPI_H) message(STATUS "WARNING: Without wspiapi.h, this build will only work on Windows XP and newer versions") endif (NOT HAVE_WSPIAPI_H) - check_include_file(ws2tcpip.h HAVE_WS2TCPIP_H) + check_include_files("winsock2.h;ws2tcpip.h" HAVE_WS2TCPIP_H) if (HAVE_WSPIAPI_H OR HAVE_WS2TCPIP_H) set(HAVE_GETADDRINFO TRUE) set(HAVE_GETHOSTBYNAME TRUE) |