Skip to content

curl: Avoid checking 'send' and 'recv' signatures

Brad King requested to merge brad.king/cmake:curl-send-recv into master

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 and recv, 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.

Merge request reports