Please try the following mini-patch:
--- dlls/winsock/socket.c.ORIG Tue Apr 9 10:50:50 2002 +++ dlls/winsock/socket.c Tue Apr 9 10:51:03 2002 @@ -57,6 +57,7 @@ #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif +#include <sys/uio.h> #ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif