diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/Makefile.am | 1 | ||||
| -rw-r--r-- | include/sys/uio.h | 17 |
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 | |||
| 26 | noinst_HEADERS += sys/socket.h | 26 | noinst_HEADERS += sys/socket.h |
| 27 | noinst_HEADERS += sys/times.h | 27 | noinst_HEADERS += sys/times.h |
| 28 | noinst_HEADERS += sys/types.h | 28 | noinst_HEADERS += sys/types.h |
| 29 | noinst_HEADERS += sys/uio.h | ||
| 29 | 30 | ||
| 30 | if ENABLE_LIBTLS | 31 | if ENABLE_LIBTLS |
| 31 | include_HEADERS = tls.h | 32 | 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 @@ | |||
| 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 | |||
| 12 | struct iovec { | ||
| 13 | void *iov_base; | ||
| 14 | size_t iov_len; | ||
| 15 | }; | ||
| 16 | |||
| 17 | #endif | ||
