diff options
Diffstat (limited to 'include/apr_want.h')
-rw-r--r-- | include/apr_want.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/apr_want.h b/include/apr_want.h index c7556a792..b0da0a0c9 100644 --- a/include/apr_want.h +++ b/include/apr_want.h @@ -81,10 +81,28 @@ #ifdef APR_WANT_IOVEC +#if APR_HAVE_IOVEC + #if APR_HAVE_SYS_UIO_H #include <sys/uio.h> #endif +#else + +struct iovec +{ + char *iov_base; + int iov_len; +}; + +#endif + +/* apr_want is included at several layers; redefining APR_HAVE_IOVEC + * now to ensure that our struct is not introduced several times. + */ +#undef APR_HAVE_IOVEC +#define APR_HAVE_IOVEC 1 + #undef APR_WANT_IOVEC #endif |