(svn r20030) -Fix: MSVC 2010 defines more POSIX error constants that we define as well.
This commit is contained in:
@@ -22,11 +22,13 @@
|
|||||||
|
|
||||||
/* Windows stuff */
|
/* Windows stuff */
|
||||||
#if defined(WIN32) || defined(WIN64)
|
#if defined(WIN32) || defined(WIN64)
|
||||||
|
#include <errno.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#define GET_LAST_ERROR() WSAGetLastError()
|
#define GET_LAST_ERROR() WSAGetLastError()
|
||||||
|
#undef EWOULDBLOCK
|
||||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||||
/* Windows has some different names for some types */
|
/* Windows has some different names for some types */
|
||||||
typedef unsigned long in_addr_t;
|
typedef unsigned long in_addr_t;
|
||||||
|
Reference in New Issue
Block a user