summaryrefslogtreecommitdiff
path: root/bindings/c
diff options
context:
space:
mode:
authorunknown <bundra@.(none)>2009-12-10 16:46:22 +0100
committerunknown <bundra@.(none)>2009-12-10 16:46:22 +0100
commitd4fdc26efc6b21103e446f712a484af910a57f2f (patch)
tree575a0559b998fb00162a3b4fff85971adc3ab2d8 /bindings/c
parent986ab66b8f260614b2bd18f870ad98402c0f247a (diff)
zmq_poll implemented on Win32 platform
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;