summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/windows/Socket.cpp
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2011-05-18 02:14:07 +0000
committerTed Ross <tross@apache.org>2011-05-18 02:14:07 +0000
commiteca0963bf440a08ed4ee7abc2ea66cc50fa01f43 (patch)
tree2a530f3a690e6bafca5819ee90fe2b4427e603a4 /cpp/src/qpid/sys/windows/Socket.cpp
parent111effbd4a988a0fc96d00034f4662ba6c7ebb9f (diff)
downloadqpid-python-eca0963bf440a08ed4ee7abc2ea66cc50fa01f43.tar.gz
QPID-2905 - Code modifications to enable Windows builds with the mingw32 compiler.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1104662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/windows/Socket.cpp')
-rwxr-xr-xcpp/src/qpid/sys/windows/Socket.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/windows/Socket.cpp b/cpp/src/qpid/sys/windows/Socket.cpp
index 11fb8b4133..2ce274acc9 100755
--- a/cpp/src/qpid/sys/windows/Socket.cpp
+++ b/cpp/src/qpid/sys/windows/Socket.cpp
@@ -19,6 +19,11 @@
*
*/
+// Ensure we get all of winsock2.h
+#ifndef _WIN32_WINNT
+#define _WIN32_WINNT 0x0501
+#endif
+
#include "qpid/sys/Socket.h"
#include "qpid/sys/SocketAddress.h"
#include "qpid/sys/windows/IoHandlePrivate.h"