MSG_NOSIGNAL could theoretically be an enum member or something rather
than an #define, so it's better to check for the flag defined by the
configure check (as is done in dbus-connection.c already).
Reviewed-by: Colin Walters <walters@verbum.org>
Reviewed-by: Scott James Remnant <scott@netsplit.com>
int start,
int len)
{
-#ifdef MSG_NOSIGNAL
+#ifdef HAVE_DECL_MSG_NOSIGNAL
const char *data;
int bytes_written;
again:
bytes_written = sendmsg (fd, &m, 0
-#ifdef MSG_NOSIGNAL
+#ifdef HAVE_DECL_MSG_NOSIGNAL
|MSG_NOSIGNAL
#endif
);
int start2,
int len2)
{
-#ifdef MSG_NOSIGNAL
+#ifdef HAVE_DECL_MSG_NOSIGNAL
struct iovec vectors[2];
const char *data1;
const char *data2;
#if defined(HAVE_CMSGCRED)
bytes_written = sendmsg (server_fd, &msg, 0
-#ifdef MSG_NOSIGNAL
+#ifdef HAVE_DECL_MSG_NOSIGNAL
|MSG_NOSIGNAL
#endif
);
#else
bytes_written = send (server_fd, buf, 1, 0
-#ifdef MSG_NOSIGNAL
+#ifdef HAVE_DECL_MSG_NOSIGNAL
|MSG_NOSIGNAL
#endif
);