From: Brian Aker Date: Thu, 22 Apr 2010 23:42:25 +0000 (-0700) Subject: Fix macro for Linux X-Git-Tag: 0.40~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f283b947353ca50d35adad5326700df66a86c1a5;p=awesomized%2Flibmemcached Fix macro for Linux --- diff --git a/libmemcached/connect.c b/libmemcached/connect.c index 125d7b0a..8d0e0a9b 100644 --- a/libmemcached/connect.c +++ b/libmemcached/connect.c @@ -106,6 +106,7 @@ static memcached_return_t set_socket_options(memcached_server_st *ptr) #endif +#if defined(__MACH__) && defined(__APPLE__) || defined(__FreeBSD__) { int set = 1; int error= setsockopt(ptr->fd, SOL_SOCKET, SO_NOSIGPIPE, (void *)&set, sizeof(int)); @@ -117,6 +118,7 @@ static memcached_return_t set_socket_options(memcached_server_st *ptr) perror("setsockopt(SO_NOSIGPIPE)"); } } +#endif if (ptr->root->flags.no_block) {