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);