diff --git a/include/Makefile.am b/include/Makefile.am index ad06032..31cc0ab 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -26,6 +26,7 @@ noinst_HEADERS += sys/select.h noinst_HEADERS += sys/socket.h noinst_HEADERS += sys/times.h noinst_HEADERS += sys/types.h +noinst_HEADERS += sys/uio.h if ENABLE_LIBTLS include_HEADERS = tls.h diff --git a/include/sys/uio.h b/include/sys/uio.h new file mode 100644 index 0000000..b4aee9e --- /dev/null +++ b/include/sys/uio.h @@ -0,0 +1,17 @@ +/* + * Public domain + * sys/select.h compatibility shim + */ + +#ifndef _WIN32 +#include_next +#else + +#include + +struct iovec { + void *iov_base; + size_t iov_len; +}; + +#endif