[xiph-commits] r14545 - icecast/trunk/net

karl at svn.xiph.org karl at svn.xiph.org
Wed Feb 27 18:16:24 PST 2008


Author: karl
Date: 2008-02-27 18:16:23 -0800 (Wed, 27 Feb 2008)
New Revision: 14545

Modified:
   icecast/trunk/net/sock.c
Log:
build fix for older setups with IPv6 


Modified: icecast/trunk/net/sock.c
===================================================================
--- icecast/trunk/net/sock.c	2008-02-27 23:19:33 UTC (rev 14544)
+++ icecast/trunk/net/sock.c	2008-02-28 02:16:23 UTC (rev 14545)
@@ -699,7 +699,9 @@
 
         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)
         {



More information about the commits mailing list