mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
cmake: fix send/recv argument scanner for windows
... by simply trying the Windows argument types first. Fixes #1640
This commit is contained in:
parent
fa289ea08e
commit
40ed7685bf
@ -32,9 +32,9 @@ int main(void) {
|
|||||||
if(curl_cv_recv)
|
if(curl_cv_recv)
|
||||||
if(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
if(NOT DEFINED curl_cv_func_recv_args OR "${curl_cv_func_recv_args}" STREQUAL "unknown")
|
||||||
foreach(recv_retv "int" "ssize_t" )
|
foreach(recv_retv "int" "ssize_t" )
|
||||||
foreach(recv_arg1 "int" "ssize_t" "SOCKET")
|
foreach(recv_arg1 "SOCKET" "int" )
|
||||||
foreach(recv_arg2 "void *" "char *")
|
foreach(recv_arg2 "char *" "void *" )
|
||||||
foreach(recv_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
foreach(recv_arg3 "int" "size_t" "socklen_t" "unsigned int")
|
||||||
foreach(recv_arg4 "int" "unsigned int")
|
foreach(recv_arg4 "int" "unsigned int")
|
||||||
if(NOT curl_cv_func_recv_done)
|
if(NOT curl_cv_func_recv_done)
|
||||||
unset(curl_cv_func_recv_test CACHE)
|
unset(curl_cv_func_recv_test CACHE)
|
||||||
@ -96,9 +96,9 @@ int main(void) {
|
|||||||
if(curl_cv_send)
|
if(curl_cv_send)
|
||||||
if(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
if(NOT DEFINED curl_cv_func_send_args OR "${curl_cv_func_send_args}" STREQUAL "unknown")
|
||||||
foreach(send_retv "int" "ssize_t" )
|
foreach(send_retv "int" "ssize_t" )
|
||||||
foreach(send_arg1 "int" "ssize_t" "SOCKET")
|
foreach(send_arg1 "SOCKET" "int" "ssize_t" )
|
||||||
foreach(send_arg2 "const void *" "void *" "char *" "const char *")
|
foreach(send_arg2 "const char *" "const void *" "void *" "char *")
|
||||||
foreach(send_arg3 "size_t" "int" "socklen_t" "unsigned int")
|
foreach(send_arg3 "int" "size_t" "socklen_t" "unsigned int")
|
||||||
foreach(send_arg4 "int" "unsigned int")
|
foreach(send_arg4 "int" "unsigned int")
|
||||||
if(NOT curl_cv_func_send_done)
|
if(NOT curl_cv_func_send_done)
|
||||||
unset(curl_cv_func_send_test CACHE)
|
unset(curl_cv_func_send_test CACHE)
|
||||||
|
Loading…
Reference in New Issue
Block a user