diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-11-06 11:57:52 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-11-06 11:57:52 +0100 |
commit | 5d1a8cd88b396e895fdda9059a3795303747aaa3 (patch) | |
tree | bbcc7d024b7f282296f161b6f62ae70755df4002 /ConfigureChecks.cmake | |
parent | 528b9c5323c61e65877c5fa0dd0f5444edccc981 (diff) | |
download | libssh-5d1a8cd88b396e895fdda9059a3795303747aaa3.tar.gz libssh-5d1a8cd88b396e895fdda9059a3795303747aaa3.tar.xz libssh-5d1a8cd88b396e895fdda9059a3795303747aaa3.zip |
cmake: Check for io.h on Windows
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index f290a6f1..e18965a5 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -65,6 +65,8 @@ check_include_file(arpa/inet.h HAVE_ARPA_INET_H) check_include_file(byteswap.h HAVE_BYTESWAP_H) if (WIN32) + check_include_file(io.h HAVE_IO_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") |