summaryrefslogtreecommitdiff
path: root/librabbitmq/win32/socket.h
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2012-06-06 14:42:19 -0400
committerAlan Antonuk <alan.antonuk@gmail.com>2012-06-06 18:00:31 -0400
commitd2462806af2a2f58a689211f5b381c3a3eea1e8e (patch)
treecfc7421b2d4bf97fd50941f87598b81aa081349d /librabbitmq/win32/socket.h
parent815f5215dcf2f0fb487dc89f4ec4f1ef6bfb2ff2 (diff)
downloadrabbitmq-c-github-ask-issue23.tar.gz
Disable sigpipe on Mac OSXissue23
Use setsockopt(SO_NOSIGPIPE) on platforms that don't have MSG_NOSIGNAL and do have SO_NOSIGPIPE
Diffstat (limited to 'librabbitmq/win32/socket.h')
-rw-r--r--librabbitmq/win32/socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/librabbitmq/win32/socket.h b/librabbitmq/win32/socket.h
index 4572410..3b9c452 100644
--- a/librabbitmq/win32/socket.h
+++ b/librabbitmq/win32/socket.h
@@ -57,4 +57,8 @@ amqp_socket_writev(int sock, struct iovec *iov, int nvecs);
int
amqp_socket_error(void);
+#ifndef MSG_NOSIGNAL
+# define MSG_NOSIGNAL 0x0
+#endif
+
#endif