From 1d6211c19cfbca9654b01f3cd0b4bfcd475cb1a1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 18 Sep 2016 09:50:02 -0300 Subject: [PATCH] test --- iguana/iguana_peers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 4e997bde9..4191b6c59 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -393,7 +393,7 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port) //printf("keepalive.%d\n",opt); } setsockopt(sock,SOL_SOCKET,SO_REUSEADDR,(void *)&opt,sizeof(opt)); -#ifndef __APPLE__ +#ifdef __APPLE__ setsockopt(sock,SOL_SOCKET,SO_NOSIGPIPE,&opt,sizeof(opt)); #endif #endif