I hope I am doing this correctly. I am porting some Win32 software using WineLib and ran into some problems with the WinSock headers, specifically with regards to the use of FD_ZERO and FD_SET (they just wouldn't compile at all). Attached is the patch that resolved my problems. ChangeLog Fixed if statement in __WS_FD_SET2 which did not have it's outer set of parenthesis. Removed parentheses around type to be cast in __WS_FD_SET macro. Removed WS macro usage from within other macros because the WS macro is undefined when these macros are expanded. Pat McNerthney Icicle Software, Inc.
Attachment:
patch.diff
Description: Binary data