Win7 Build Issue

2010-08-13 Thread Jason Baurick
I ran into a small windows build issue, below is the patch which fixes it. Basically there are two issues, first FIOREAD is undefined. The second is that the u_long type and size_t type are not always the same on windows, so I introduced a temporary u_long to pass into ioctlsocket. I've also

Re: Win7 Build Issue

2010-08-13 Thread David Sugar
I would be happy to take this patch in for the next release. I will also have to see if this applies to ucommon. I see there we currently have: #ifdef _MSWINDOWS_ unsigned Socket::pending(socket_t so) { u_long opt; if(so == INVALID_SOCKET) return 0; ioctlsocket(so, FIONREAD,