diff options
author | Justin Erenkrantz <jerenkrantz@apache.org> | 2006-07-12 02:09:05 +0000 |
---|---|---|
committer | Justin Erenkrantz <jerenkrantz@apache.org> | 2006-07-12 02:09:05 +0000 |
commit | d11e18def89ec2a51f013ed2db5139307b3fdf32 (patch) | |
tree | 4b24bbab9e4c792313ea4cdbb72558469a439eb1 /include/apr_want.h | |
parent | 136a0c9b8dbe3f0acbb5c6b2b756d41a8976fc1b (diff) | |
download | apr-d11e18def89ec2a51f013ed2db5139307b3fdf32.tar.gz |
Define struct iovec for mingw.
This patch also moves the iovec 'workaround' from apr.hw into apr_want.h too.
Originally titled: [patch 09/17] struct iovec
Submitted by: John Mark Vandenberg
Reviewed by: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@421075 13f79535-47bb-0310-9956-ffa450edef68
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 |