summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Network.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2014-07-24 18:50:20 -0400
committerBernard Normier <bernard@zeroc.com>2014-07-24 18:50:20 -0400
commit2afc67db3fa6f87538bb927b9621a351948883a4 (patch)
tree4324c78515e48615e082658d80fef0a0638f162c /cpp/src/Ice/Network.cpp
parentCompleted fix for ICE-5567: move various C++11 classes/functions out of line (diff)
downloadice-2afc67db3fa6f87538bb927b9621a351948883a4.tar.bz2
ice-2afc67db3fa6f87538bb927b9621a351948883a4.tar.xz
ice-2afc67db3fa6f87538bb927b9621a351948883a4.zip
Build fixes for MinGW 4.7.2-32
Diffstat (limited to 'cpp/src/Ice/Network.cpp')
-rw-r--r--cpp/src/Ice/Network.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index f8f3b2e96b8..880c66e8ce3 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -22,10 +22,7 @@
// some definitions.
//
#if defined(__MINGW32__)
-# define _WIN32_WINNT 0x0501
-# ifndef IPV6_V6ONLY
-# define IPV6_V6ONLY 27
-# endif
+#define _WIN32_WINNT 0x0600
#endif
#include <IceUtil/DisableWarnings.h>
@@ -57,6 +54,17 @@
# include <sys/sockio.h>
#endif
+#if defined(__MINGW32__)
+# ifndef IPV6_V6ONLY
+# define IPV6_V6ONLY 27
+# endif
+
+extern "C"
+{
+ WINSOCK_API_LINKAGE int WSAAPI inet_pton(INT, PCTSTR, PVOID);
+}
+#endif
+
using namespace std;
using namespace Ice;
using namespace IceInternal;