diff --git a/include/zmq.h b/include/zmq.h index aaa04305..f28d5456 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -215,17 +215,6 @@ ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags); ZMQ_EXPORT int zmq_sendmsg (void *s, zmq_msg_t *msg, int flags); ZMQ_EXPORT int zmq_recvmsg (void *s, zmq_msg_t *msg, int flags); -// XSI vector I/O -#if ZMQ_HAVE_UIO -#include -#else -struct iovec -{ - void *iov_base; - size_t iov_len; -}; -#endif - ZMQ_EXPORT int zmq_sendv (void *s, struct iovec *iov, size_t count, int flags); ZMQ_EXPORT int zmq_recvmmsg (void *s, struct iovec *iov, size_t *count, int flags); diff --git a/src/zmq.cpp b/src/zmq.cpp index c70cfa6b..e4179127 100644 --- a/src/zmq.cpp +++ b/src/zmq.cpp @@ -51,6 +51,18 @@ #endif +// XSI vector I/O +#if ZMQ_HAVE_UIO +#include +#else +struct iovec +{ + void *iov_base; + size_t iov_len; +}; +#endif + + #include #include #include