http://bugs.winehq.org/show_bug.cgi?id=26031
--- Comment #36 from Bruno Jesus 00cpxxx@gmail.com 2012-08-08 10:29:06 CDT --- Artem, remove the example usage, force TCP and stop parsing argv values to reduce the program size. Switch:
#define WIN32_LEAN_AND_MEAN #include <winsock2.h>
To
#include <sys/ioctl.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <arpa/inet.h> #include <sys/time.h> #include <fcntl.h>
Change: closecoket
To: close
And remove WSAStartup. Then compile in linux gcc.