http://bugs.winehq.org/show_bug.cgi?id=16833
--- Comment #9 from David Gerard dgerard@gmail.com 2009-01-21 03:59:18 --- Nope, that wasn't it. Cygwin appears to have pulled its /usr/include/net and /usr/include/netinet files from FreeBSD 3, so I copied net/if_arp.h, net/route.h, netinet/if_ether.h, net/ethernet.h and net/radix.h from there. The tests pass, but internettransport.c still bombs out the same.
The problem appears to be that FD_CLR is defined by Cygwin in its winsock.h and winsock2.h. I changed Wine's winsock2.h to pull "winsock.h" (its own) rather than <winsock.h> (which could be its own or Cygwin's), but that didn't help either. Continuing investigation ...