(win32) Fix the GTK+ client to build for win32

This commit is contained in:
Mukund Sivaraman 2008-09-05 15:13:09 +00:00
parent e97ced5a37
commit 6e8935ba09
1 changed files with 9 additions and 0 deletions

View File

@ -23,7 +23,16 @@
*****************************************************************************/
#include <sys/types.h>
#ifdef WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#include <io.h>
#define EWOULDBLOCK WSAEWOULDBLOCK
#define ECONNREFUSED WSAECONNREFUSED
#define ECONNABORTED WSAECONNABORTED
#else
#include <sys/socket.h>
#endif
#include <errno.h>
#include <string.h> /* memset, memmove */
#include <unistd.h> /* read, write */