@ -59,7 +59,6 @@ check_function_exists(endservent HAVE_ENDSERVENT)
check_function_exists ( fnctl HAVE_FNCTL )
check_function_exists ( fnctl HAVE_FNCTL )
check_function_exists ( fork HAVE_FORK )
check_function_exists ( fork HAVE_FORK )
check_function_exists ( fseeko HAVE_FSEEKO )
check_function_exists ( fseeko HAVE_FSEEKO )
check_function_exists ( getaddrinfo HAVE_GETADDRINFO )
check_function_exists ( getentropy HAVE_GETENTROPY )
check_function_exists ( getentropy HAVE_GETENTROPY )
check_function_exists ( getpwnam HAVE_GETPWNAM )
check_function_exists ( getpwnam HAVE_GETPWNAM )
check_function_exists ( getrlimit HAVE_GETRLIMIT )
check_function_exists ( getrlimit HAVE_GETRLIMIT )
@ -100,6 +99,17 @@ check_function_exists(usleep HAVE_USLEEP)
check_function_exists ( writev HAVE_WRITEV )
check_function_exists ( writev HAVE_WRITEV )
check_function_exists ( _beginthreadex HAVE__BEGINTHREADEX )
check_function_exists ( _beginthreadex HAVE__BEGINTHREADEX )
set ( getaddrinfo_headers )
if ( HAVE_NETDB_H )
list ( APPEND getaddrinfo_headers "netdb.h" )
endif ( )
if ( HAVE_WS2TCPIP_H )
list ( APPEND getaddrinfo_headers "ws2tcpip.h" )
endif ( )
check_symbol_exists ( getaddrinfo "${getaddrinfo_headers}" HAVE_GETADDRINFO )
check_function_exists ( getaddrinfo HAVE_GETADDRINFO )
function ( check_type_exists type variable header default )
function ( check_type_exists type variable header default )
set ( CMAKE_EXTRA_INCLUDE_FILES "${header}" )
set ( CMAKE_EXTRA_INCLUDE_FILES "${header}" )
check_type_size ( "${type}" "${variable}" )
check_type_size ( "${type}" "${variable}" )