Skip to content

Commit

Permalink
(svn r20030) -Fix: MSVC 2010 defines more POSIX error constants that …
Browse files Browse the repository at this point in the history
…we define as well.
  • Loading branch information
michicc committed Jun 28, 2010
1 parent 0599cb6 commit 2235762
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/network/core/os_abstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@

/* Windows stuff */
#if defined(WIN32) || defined(WIN64)
#include <errno.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>

#define GET_LAST_ERROR() WSAGetLastError()
#undef EWOULDBLOCK
#define EWOULDBLOCK WSAEWOULDBLOCK
/* Windows has some different names for some types */
typedef unsigned long in_addr_t;
Expand Down

0 comments on commit 2235762

Please sign in to comment.