diff options
Diffstat (limited to 'cpp/src/Ice/Network.cpp')
-rw-r--r-- | cpp/src/Ice/Network.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp index a790a099a25..b0a9b94f1b0 100644 --- a/cpp/src/Ice/Network.cpp +++ b/cpp/src/Ice/Network.cpp @@ -7,13 +7,6 @@ // // ********************************************************************** -#ifdef _WIN32 -// -// Prevents windows.h from including winsock.h -// -# define WIN32_LEAN_AND_MEAN 1 -#endif - #include <Ice/Network.h> #include <Ice/LocalException.h> @@ -30,6 +23,16 @@ using namespace IceInternal; # define INADDR_NONE (unsigned long)-1 #endif +int +IceInternal::getSocketErrno() +{ +#ifdef _WIN32 + return WSAGetLastError(); +#else + return errno; +#endif +} + bool IceInternal::interrupted() { |