From d4fdc26efc6b21103e446f712a484af910a57f2f Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 10 Dec 2009 16:46:22 +0100 Subject: zmq_poll implemented on Win32 platform --- bindings/c/zmq.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bindings') 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 #include +#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; -- cgit v1.2.3