1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-16 08:04:30 +03:00

Add a warning if wspiapi.h doesn't exist.

This commit is contained in:
Andreas Schneider 2009-08-20 12:32:35 +02:00
parent fd83d69440
commit d23e64fc52

View File

@ -25,6 +25,9 @@ check_include_file(pty.h HAVE_PTY_H)
check_include_file(terminos.h HAVE_TERMIOS_H) check_include_file(terminos.h HAVE_TERMIOS_H)
if (WIN32) if (WIN32)
check_include_file(wspiapi.h HAVE_WSPIAPI_H) check_include_file(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)
set(HAVE_GETADDRINFO TRUE) set(HAVE_GETADDRINFO TRUE)
set(HAVE_GETHOSTBYNAME TRUE) set(HAVE_GETHOSTBYNAME TRUE)
set(HAVE_SELECT TRUE) set(HAVE_SELECT TRUE)