less complicated code for the MSG_NOSIGNAL detection
This commit is contained in:
@@ -116,10 +116,11 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MSG_NOSIGNAL
|
#ifdef MSG_NOSIGNAL
|
||||||
/* If we have the MSG_NOSIGNAL define, we make sure to use that in the forth
|
/* If we have the MSG_NOSIGNAL define, we make sure to use that in the forth
|
||||||
argument to send() and recv() */
|
argument to send() and recv() */
|
||||||
#define SEND_4TH_ARG MSG_NOSIGNAL
|
#define SEND_4TH_ARG MSG_NOSIGNAL
|
||||||
|
#define HAVE_MSG_NOSIGNAL 1 /* we have MSG_NOSIGNAL */
|
||||||
#else
|
#else
|
||||||
#define SEND_4TH_ARG 0
|
#define SEND_4TH_ARG 0
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user