From 19431ba192c3b95726c7297c96494ba6397879ef Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 5 Mar 2016 17:32:07 +0100 Subject: Replace SOL_IP by more portable IPPROTO_IP --- src/UdpSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UdpSocket.cpp b/src/UdpSocket.cpp index af26430..8ac3706 100644 --- a/src/UdpSocket.cpp +++ b/src/UdpSocket.cpp @@ -287,7 +287,7 @@ int UdpSocket::joinGroup(char* groupname) #else group.imr_address.s_addr = htons(INADDR_ANY);; group.imr_ifindex = 0; - if (setsockopt(listenSocket, SOL_IP, IP_ADD_MEMBERSHIP, &group, sizeof(group)) + if (setsockopt(listenSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP, &group, sizeof(group)) == SOCKET_ERROR) { setInetError("Can't join multicast group"); } -- cgit v1.2.3