forked from enlightenment/efl
ecore_con: fix compiling on OS X
IPV6_ADD_MEMBERSHIP does not exist on OS X, and seems to be obsolete, according to my glibc's bits/in.h. IPV6_JOIN_GROUP, however, exists on both. @fix
This commit is contained in:
parent
4521929d69
commit
2ecd11e221
|
@ -1751,7 +1751,7 @@ _ecore_con_cb_udp_listen(void *data,
|
||||||
&mreq6.ipv6mr_multiaddr))
|
&mreq6.ipv6mr_multiaddr))
|
||||||
goto error;
|
goto error;
|
||||||
mreq6.ipv6mr_interface = htonl(INADDR_ANY);
|
mreq6.ipv6mr_interface = htonl(INADDR_ANY);
|
||||||
if (setsockopt(svr->fd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP,
|
if (setsockopt(svr->fd, IPPROTO_IPV6, IPV6_JOIN_GROUP,
|
||||||
(const void *)&mreq6, sizeof(mreq6)) != 0)
|
(const void *)&mreq6, sizeof(mreq6)) != 0)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue