summaryrefslogtreecommitdiff
path: root/bindings/c
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/c')
-rw-r--r--bindings/c/zmq.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bindings/c/zmq.h b/bindings/c/zmq.h
index ae8d6b1..f0d59b1 100644
--- a/bindings/c/zmq.h
+++ b/bindings/c/zmq.h
@@ -26,6 +26,9 @@ extern "C" {
#include <errno.h>
#include <stddef.h>
+#if defined _WIN32
+#include "winsock2.h"
+#endif
// Microsoft Visual Studio uses non-standard way to export/import symbols.
#if defined ZMQ_BUILDING_LIBZMQ_WITH_MSVC
@@ -185,7 +188,11 @@ ZMQ_EXPORT int zmq_recv (void *s, zmq_msg_t *msg, int flags);
typedef struct
{
void *socket;
+#if defined _WIN32
+ SOCKET fd;
+#else
int fd;
+#endif
short events;
short revents;
} zmq_pollitem_t;