curl: Avoid checking 'send' and 'recv' signatures
cURL detects the send
and recv
signatures using a large loop
of try_compile
checks. The results are used for the following:
-
Casting argument types in calls to
send
andrecv
, perhaps to avoid conversion warnings. We compile with-w
anyway. -
Providing debug variants for
CURLDEBUG
, which we do not use.
Replace the detection loops with hard-coded results that should work well enough everywhere. This significantly reduces the number of configure-time checks for building CMake on some platforms.