Thanks Bill.
I was going to patch this up in extconf and then add an IP6 definition
or similar (the win32 build also needs it, iirc). Someone else
reported this last night too. I will attach your patch to #17
(http://rubyeventmachine.com/ticket/17
).
Thanks again,
James.
On 10 Jun 2008, at 09:04, Bill Kelly wrote:
> Howdy,
>
> cygwin seems to have the same lack-of-ipv6 issues as Windows
> at present...
> Here''s a patch to em.cpp, adding a couple __CYGWIN__ checks to
> get past the compile problems:
>
> Index: em.cpp
> ==================================================================> ---
em.cpp (revision 696)
> +++ em.cpp (working copy)
> @@ -1175,7 +1175,9 @@
> // Return NULL if no resolution.
>
> static struct sockaddr_in in4;
> + #ifndef __CYGWIN__
> static struct sockaddr_in6 in6;
> + #endif
> struct hostent *hp;
>
> if (!server || !*server)
> @@ -1192,7 +1194,7 @@
> return (struct sockaddr*)&in4;
> }
>
> - #ifdef OS_UNIX
> + #if defined(OS_UNIX) && !defined(__CYGWIN__)
> memset (&in6, 0, sizeof(in6));
> if (inet_pton (AF_INET6, server, in6.sin6_addr.s6_addr) > 0) {
> if (family)
>
>
>
> ==================================================================>
>
>
> Regards,
>
> Bill
>
>
> _______________________________________________
> Eventmachine-talk mailing list
> Eventmachine-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/eventmachine-talk