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:
Jean Guyomarc'h 2016-01-05 23:23:04 +01:00 committed by Stefan Schmidt
parent 4521929d69
commit 2ecd11e221
1 changed files with 1 additions and 1 deletions

View File

@ -1751,7 +1751,7 @@ _ecore_con_cb_udp_listen(void *data,
&mreq6.ipv6mr_multiaddr))
goto error;
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)
goto error;
}