aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2015-01-31 21:52:20 -0600
committerBrent Cook <busterb@gmail.com>2015-01-31 21:52:20 -0600
commit9909bd7aa5a0f93dd65b4ba557c906120fd64609 (patch)
tree713619771968c3eed6e937fa69ab192b75f64969
parent6c46e808718463c4461f1bc389785881b45d0344 (diff)
downloadportable-9909bd7aa5a0f93dd65b4ba557c906120fd64609.tar.gz
portable-9909bd7aa5a0f93dd65b4ba557c906120fd64609.tar.bz2
portable-9909bd7aa5a0f93dd65b4ba557c906120fd64609.zip
include 'struct iovec' for Windows
this is used for in-memory cert loading
-rw-r--r--include/Makefile.am1
-rw-r--r--include/sys/uio.h17
2 files changed, 18 insertions, 0 deletions
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
26noinst_HEADERS += sys/socket.h 26noinst_HEADERS += sys/socket.h
27noinst_HEADERS += sys/times.h 27noinst_HEADERS += sys/times.h
28noinst_HEADERS += sys/types.h 28noinst_HEADERS += sys/types.h
29noinst_HEADERS += sys/uio.h
29 30
30if ENABLE_LIBTLS 31if ENABLE_LIBTLS
31include_HEADERS = tls.h 32include_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 @@
1/*
2 * Public domain
3 * sys/select.h compatibility shim
4 */
5
6#ifndef _WIN32
7#include_next <sys/uio.h>
8#else
9
10#include <sys/types.h>
11
12struct iovec {
13 void *iov_base;
14 size_t iov_len;
15};
16
17#endif