diff --git a/deps/evcom/evcom.c b/deps/evcom/evcom.c index 5e37822ccf7..99881ebd9a3 100644 --- a/deps/evcom/evcom.c +++ b/deps/evcom/evcom.c @@ -656,7 +656,7 @@ accept_connection (evcom_server *server) #ifdef SO_NOSIGPIPE int flags = 1; - int r = setsockopt(fd, SOL_STREAM, SO_NOSIGPIPE, &flags, sizeof(flags)); + int r = setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &flags, sizeof(flags)); if (r < 0) goto error; #endif