summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Network.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-09-23 11:43:30 +0200
committerJose <jose@zeroc.com>2014-09-23 11:43:30 +0200
commit4ebfa7474113f7da38baec2093edc387010a925f (patch)
tree0bee05781ceac9d00a5cfed4011f620e24fcb109 /cpp/src/Ice/Network.cpp
parentICE-5613 Add systemd files (diff)
downloadice-4ebfa7474113f7da38baec2093edc387010a925f.tar.bz2
ice-4ebfa7474113f7da38baec2093edc387010a925f.tar.xz
ice-4ebfa7474113f7da38baec2093edc387010a925f.zip
vs2010 build fixes
Diffstat (limited to 'cpp/src/Ice/Network.cpp')
-rw-r--r--cpp/src/Ice/Network.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index 0ad8aa6cefa..823529753a7 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -51,6 +51,12 @@
# include <sys/sockio.h>
#endif
+#if defined(_WIN32)
+# ifndef SIO_LOOPBACK_FAST_PATH
+# define SIO_LOOPBACK_FAST_PATH _WSAIOW(IOC_VENDOR,16)
+# endif
+#endif
+
#if defined(__MINGW32__)
//
// Work-around for missing definitions in MinGW Windows headers
@@ -58,9 +64,6 @@
# ifndef IPV6_V6ONLY
# define IPV6_V6ONLY 27
# endif
-# ifndef SIO_LOOPBACK_FAST_PATH
-# define SIO_LOOPBACK_FAST_PATH _WSAIOW(IOC_VENDOR,16)
-# endif
extern "C"
{