mirror of
https://github.com/transmission/transmission
synced 2025-02-07 23:14:41 +00:00
(win32) Fix the GTK+ client to build for win32
This commit is contained in:
parent
e97ced5a37
commit
6e8935ba09
1 changed files with 9 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue