include 'struct iovec' for Windows

this is used for in-memory cert loading
This commit is contained in:
Brent Cook 2015-01-31 21:52:20 -06:00
parent 6c46e80871
commit 9909bd7aa5
2 changed files with 18 additions and 0 deletions

View File

@ -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

17
include/sys/uio.h Normal file
View File

@ -0,0 +1,17 @@
/*
* Public domain
* sys/select.h compatibility shim
*/
#ifndef _WIN32
#include_next <sys/uio.h>
#else
#include <sys/types.h>
struct iovec {
void *iov_base;
size_t iov_len;
};
#endif