From: Tilghman Lesher Date: Mon, 11 Jan 2010 23:19:51 +0000 (+0000) Subject: Socket level option is SOL_SOCKET, not SO_SOCKET. X-Git-Tag: 11.0.0-beta1~3627 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd8aa003e47bee5bd6f10b0e1fc1899f41d5a9f5;p=thirdparty%2Fasterisk.git Socket level option is SOL_SOCKET, not SO_SOCKET. (issue #16580) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239245 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pktccops.c b/res/res_pktccops.c index f16c695f06..8069e723d0 100644 --- a/res/res_pktccops.c +++ b/res/res_pktccops.c @@ -678,7 +678,7 @@ static int cops_connect(char *host, char *port) flags = fcntl(sfd, F_GETFL); fcntl(sfd, F_SETFL, flags | O_NONBLOCK); #ifdef HAVE_SO_NOSIGPIPE - setsockopt(sfd, SO_SOCKET, SO_NOSIGPIPE, &trueval, sizeof(trueval)); + setsockopt(sfd, SOL_SOCKET, SO_NOSIGPIPE, &trueval, sizeof(trueval)); #endif connect(sfd, rp->ai_addr, rp->ai_addrlen); if (sfd == -1) {