Bill Kelly
2008-Feb-05 10:47 UTC
[Eventmachine-talk] Compiling trunk on win32 (sockaddr_in6,
Howdy, In building trunk (revision 674) on Windows (with visual studio .net 2003), I got errors about sockaddr_in6 being undefined. I did obtain sockaddr_in6 by including: #include <WinSock2.h> #include <WS2tcpip.h> instead of: #include <winsock.h> However, inet_pton() was still missing on windows. (So was bzero(), but I trivially changed that to memset.) At that point, I decided instead to just use #ifndef OS_WIN32 to skip over the ip6 related code, after which EM built with no errors. Attached is a patch to em.cpp to skip the ip6 related code on Windows builds. Regards, Bill -------------- next part -------------- A non-text attachment was scrubbed... Name: windows-ip6-remove.diff Type: application/octet-stream Size: 907 bytes Desc: not available Url : http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080205/867356f3/attachment.obj