mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
build fix for older setups with IPv6
svn path=/icecast/trunk/net/; revision=14545
This commit is contained in:
parent
c37e770ee0
commit
649c4fdc70
@ -699,7 +699,9 @@ sock_t sock_get_server_socket (int port, const char *sinterface)
|
||||
|
||||
setsockopt (sock, SOL_SOCKET, SO_REUSEADDR, (const void *)&on, sizeof(on));
|
||||
on = 0;
|
||||
#ifdef IPV6_V6ONLY
|
||||
setsockopt (sock, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof on);
|
||||
#endif
|
||||
|
||||
if (bind (sock, ai->ai_addr, ai->ai_addrlen) < 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user