jimtcl
jimtcl copied to clipboard
Fixed socket support on MinGW
Socket support on MinGW is severely broken, because the Win32 API distinguishes between SOCKET (handles) and file descriptors (managed by the CRT). Also, FILE * APIs do not play nicely with sockets.
(btw: tested on x86_64, because that's where Windows quirks shine)