diff options
author | Peter Åstrand (astrand) <astrand@cendio.se> | 2015-02-05 11:10:32 +0100 |
---|---|---|
committer | Peter Åstrand (astrand) <astrand@cendio.se> | 2015-02-05 11:10:32 +0100 |
commit | 11167e1f08b15381d5e7834baf7f0a6811af1985 (patch) | |
tree | f4b6dacb771995a173b146b04f2b5e30451296bd /common/rdr/FdOutStream.cxx | |
parent | fcfd0f21b7842725669c98d5a4e0a4e27c062a68 (diff) | |
download | tigervnc-11167e1f08b15381d5e7834baf7f0a6811af1985.tar.gz tigervnc-11167e1f08b15381d5e7834baf7f0a6811af1985.zip |
Use a common header file for Windows errno names.
In earlier Visual Studio and MinGW editions, BSD socket errno:s were
left undefined. This is no longer the case. This may cause build or
runtime errors. To avoid this, we are using a common header file which
corrects all definitions. This header will also be used with other
projects such as sercd, unfs3, PulseAudio etc.
Diffstat (limited to 'common/rdr/FdOutStream.cxx')
-rw-r--r-- | common/rdr/FdOutStream.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/rdr/FdOutStream.cxx b/common/rdr/FdOutStream.cxx index 533faa3f..83360d64 100644 --- a/common/rdr/FdOutStream.cxx +++ b/common/rdr/FdOutStream.cxx @@ -26,11 +26,9 @@ #ifdef _WIN32 #include <winsock2.h> #define write(s,b,l) send(s,(const char*)b,l,0) -#define EWOULDBLOCK WSAEWOULDBLOCK #undef errno #define errno WSAGetLastError() -#undef EINTR -#define EINTR WSAEINTR +#include <os/winerrno.h> #else #include <sys/types.h> #include <errno.h> |