mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
Improve header checks on windows.
This commit is contained in:
@@ -28,8 +28,12 @@ if (WIN32)
|
|||||||
if (NOT 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")
|
message(STATUS "WARNING: Without wspiapi.h, this build will only work on Windows XP and newer versions")
|
||||||
endif (NOT HAVE_WSPIAPI_H)
|
endif (NOT HAVE_WSPIAPI_H)
|
||||||
set(HAVE_GETADDRINFO TRUE)
|
check_include_file(ws2tcpip.h HAVE_WS2TCPIP_H)
|
||||||
set(HAVE_GETHOSTBYNAME TRUE)
|
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)
|
set(HAVE_SELECT TRUE)
|
||||||
endif (WIN32)
|
endif (WIN32)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user