summaryrefslogtreecommitdiff
path: root/librabbitmq/unix/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'librabbitmq/unix/socket.h')
-rw-r--r--librabbitmq/unix/socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/librabbitmq/unix/socket.h b/librabbitmq/unix/socket.h
index ff6fa73..d57cb7b 100644
--- a/librabbitmq/unix/socket.h
+++ b/librabbitmq/unix/socket.h
@@ -55,4 +55,12 @@ amqp_socket_error(void);
#define amqp_socket_close close
#define amqp_socket_writev writev
+#ifndef MSG_NOSIGNAL
+# define MSG_NOSIGNAL 0x0
+#endif
+
+#if defined(SO_NOSIGPIPE) && !defined(MSG_NOSIGNAL)
+# define DISABLE_SIGPIPE_WITH_SETSOCKOPT
+#endif
+
#endif