summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2012-06-25 12:37:31 -0400
committerAlan Antonuk <alan.antonuk@gmail.com>2012-06-25 12:37:31 -0400
commit44ea46eba7356fa2353508b15669575b558e0503 (patch)
tree33f3496fb59093cf58fc21a3567e53abdafcb512
parenta1c888431f58c0be3b317bdf720bee064869b595 (diff)
downloadrabbitmq-c-github-ask-issue29.tar.gz
Correct #ifdef DISABLE_SIGPIPE_WITH_SETSOCKOPTissue29
An #ifdef got turned into an #if when the IPv6 changes were being made, this corrects that.
-rw-r--r--librabbitmq/amqp_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c
index 604e32d..4484c57 100644
--- a/librabbitmq/amqp_socket.c
+++ b/librabbitmq/amqp_socket.c
@@ -82,7 +82,7 @@ int amqp_open_socket(char const *hostname,
last_error = -amqp_socket_error();
continue;
}
-#if DISABLE_SIGPIPE_WITH_SETSOCKOPT
+#ifdef DISABLE_SIGPIPE_WITH_SETSOCKOPT
if (0 != amqp_socket_setsockopt(sockfd, SOL_SOCKET, SO_NOSIGPIPE, &one, sizeof(one)))
{
last_error = -amqp_socket_error();