build: check MSG_NOSIGNAL directly, drop detection and interim macro

Drop detecting it at configure time, along with the interim macro
`HAVE_MSG_NOSIGNAL`. There is no longer a reason for this workaround,
and allows to save the work at configure time and simplify.

Also say in a comment that `sys/socket.h` is defining this macro.

Follow-up to 77b3bc239d

Closes #20559
This commit is contained in:
Viktor Szakats 2026-02-11 04:10:00 +01:00
parent c05cd2a10e
commit 982ab7b53f
No known key found for this signature in database
9 changed files with 4 additions and 62 deletions

View file

@ -1852,7 +1852,7 @@ static void set_in_callback(struct Curl_multi *multi, bool value)
*/
static void multi_posttransfer(struct Curl_easy *data)
{
#if defined(HAVE_SIGNAL) && defined(SIGPIPE) && !defined(HAVE_MSG_NOSIGNAL)
#if defined(HAVE_SIGNAL) && defined(SIGPIPE) && !defined(MSG_NOSIGNAL)
/* restore the signal handler for SIGPIPE before we get back */
if(!data->set.no_signal)
signal(SIGPIPE, data->state.prev_signal);