Created attachment 13244 [details]
Use MSG_NOSIGNAL only if available
Samba-4.6.4 fails to build on Solaris because MSG_NOSIGNAL is not available. This is used in source3/lib/messages_dgm.c. According to send(3) on Solaris, only MSG_OOB and MSG_DONTROUTE are flags to sendmsg().
msghdr_prep_fds(&msg, buf, fdlen, fds, num_fds);
ret = sendmsg(sock, &msg, MSG_NOSIGNAL);
} while ((ret == -1) && (errno == EINTR));
*** This bug has been marked as a duplicate of bug 12502 ***