Commit 649c4fdc authored by Karl Heyes's avatar Karl Heyes

build fix for older setups with IPv6

svn path=/icecast/trunk/net/; revision=14545
parent c37e770e
......@@ -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);
if (bind (sock, ai->ai_addr, ai->ai_addrlen) < 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment