summaryrefslogtreecommitdiff
path: root/src/ctx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctx.cpp')
-rw-r--r--src/ctx.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ctx.cpp b/src/ctx.cpp
index fb5420d..6d6242e 100644
--- a/src/ctx.cpp
+++ b/src/ctx.cpp
@@ -31,9 +31,13 @@
#include "msg.hpp"
#if defined ZMQ_HAVE_WINDOWS
-#include "windows.h"
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
+#endif
+#include <winsock2.h>
+#include <windows.h>
#else
-#include "unistd.h"
+#include <unistd.h>
#endif
zmq::ctx_t::ctx_t (uint32_t io_threads_) :