diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-08-21 15:15:49 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-08-21 15:15:49 +0200 |
commit | 8463d9d7c6719d4b326f0d9dc539387ebe85a35f (patch) | |
tree | 551c4d6bac1ca55b09f56127e5a81edd6194fb72 /ConfigureChecks.cmake | |
parent | c497f057a06f33d47123935375fe55806be18d9e (diff) | |
download | libssh-8463d9d7c6719d4b326f0d9dc539387ebe85a35f.tar.gz libssh-8463d9d7c6719d4b326f0d9dc539387ebe85a35f.tar.xz libssh-8463d9d7c6719d4b326f0d9dc539387ebe85a35f.zip |
Improve header checks on windows.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 07bcaec..93e3c1a 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -28,8 +28,12 @@ if (WIN32) 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) - set(HAVE_GETADDRINFO TRUE) - set(HAVE_GETHOSTBYNAME TRUE) + check_include_file(ws2tcpip.h HAVE_WS2TCPIP_H) + if (HAVE_WSPIAPI_H OR HAVE_WS2TCPIP_H) + set(HAVE_GETADDRINFO TRUE) + set(HAVE_GETHOSTBYNAME TRUE) + endif (HAVE_WSPIAPI_H OR HAVE_WS2TCPIP_H) + set(HAVE_SELECT TRUE) endif (WIN32) |