From 512114e38f2ab48d5039bb707fa51736bd1943d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 3 Mar 2016 18:46:46 +0100 Subject: [PATCH] iov: add iovec definition fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau --- src/vrend_iov.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/vrend_iov.h b/src/vrend_iov.h index 377eb43..1d59e85 100644 --- a/src/vrend_iov.h +++ b/src/vrend_iov.h @@ -24,7 +24,16 @@ #ifndef VREND_IOV_H #define VREND_IOV_H +#include "config.h" + +#ifdef HAVE_SYS_UIO_H #include +#else +struct iovec { + void *iov_base; + size_t iov_len; +}; +#endif typedef void (*iov_cb)(void *cookie, unsigned int doff, void *src, int len);