--- source3/lib/messages_dgm.c.orig 2017-03-10 11:28:17.000000000 +0100 +++ source3/lib/messages_dgm.c 2017-03-10 11:31:01.000000000 +0100 @@ -330,6 +330,10 @@ * Make sure *ONLY* thread-safe functions are called within. */ +#ifndef MSG_NOSIGNAL + #define MSG_NOSIGNAL 0x0 // Do not request NOSIGNAL on systems where this is not implemented. +#endif + static ssize_t messaging_dgm_sendmsg(int sock, const struct iovec *iov, int iovlen, const int *fds, size_t num_fds,