aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_pktccops.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_pktccops.c')
-rw-r--r--res/res_pktccops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pktccops.c b/res/res_pktccops.c
index f16c695f0..8069e723d 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) {