summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2010-06-28 18:14:00 +0000
committermichi_cc <michi_cc@openttd.org>2010-06-28 18:14:00 +0000
commit22357624ff1c59c8e434d79f461fd8c85fcecc0c (patch)
tree8dffa1f5a55915cabc820437a24797d9e47a0bea /src/network
parent0599cb67ce4f0987ff52c4112ac53990eb59f0e2 (diff)
downloadopenttd-22357624ff1c59c8e434d79f461fd8c85fcecc0c.tar.xz
(svn r20030) -Fix: MSVC 2010 defines more POSIX error constants that we define as well.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/core/os_abstraction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h
index 5b789d5cc..1bdf942c6 100644
--- a/src/network/core/os_abstraction.h
+++ b/src/network/core/os_abstraction.h
@@ -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;