http://bugs.winehq.org/show_bug.cgi?id=29499
--- Comment #24 from Bruno Jesus 00cpxxx@gmail.com 2012-03-04 10:08:05 CST --- The bug is about MacOS, I missed that in the bug summary, sorry...
POLLNVAL would only happen if the fd is invalid so I don't think it's related. The fact that my printf patch failed shows that the function gets stuck in a different place in Mac.
The ws2_32 code is know not to pass the tests in MacOs as seen in http://test.winehq.org/data/1517f3df30232daf3ccfc88e53f1377d0c5a2a20/mac_fg-... so one of the existing errors may be affecting this bug.