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

@ -852,7 +852,7 @@
#endif
#ifndef _WIN32
#include <sys/socket.h>
#include <sys/socket.h> /* also for MSG_NOSIGNAL */
#endif
#include "functypes.h"
@ -880,7 +880,7 @@ struct timeval {
* If we have the MSG_NOSIGNAL define, make sure we use
* it as the fourth argument of function send()
*/
#ifdef HAVE_MSG_NOSIGNAL
#ifdef MSG_NOSIGNAL
#define SEND_4TH_ARG MSG_NOSIGNAL
#else
#define SEND_4TH_ARG 0